WebdriverIO – how to random click on the page

WebdriverIO – how to random click on the page

In my login page. which is a small sized window(kind of mobile screen resolution), before I hit on login button an adhoc AD popup appears and I am unable to hit on Login button.

The before said popup has no constant property and keeps changing. The only best workaround is to click outside anywhere on the page which closes the popup.

Note – I have to perform this in a above mentioned window size and the popup is totally not visible

Source: Ask Javascript Questions

LEAVE A COMMENT