Actually I click on a button and a pop over es. As I click anywhere outside the pop over, it goes. That's what I need to test.
Any suggestions ?
I am thinking to click on some coordinates on the page. Tried doing it with :
1. element.click(coordinates here); // its not working
// Getting TypeError: selector.slice is not a function.
2. element.moveTo('#abc',100,100);
// now I want to click on the moved position but no success so far.
Any help is appreciated.
Actually I click on a button and a pop over es. As I click anywhere outside the pop over, it goes. That's what I need to test.
Any suggestions ?
I am thinking to click on some coordinates on the page. Tried doing it with :
1. element.click(coordinates here); // its not working
// Getting TypeError: selector.slice is not a function.
2. element.moveTo('#abc',100,100);
// now I want to click on the moved position but no success so far.
Any help is appreciated.
Try browser.leftClick(selector,xoffset,yoffset); and for selector the put element that overlays all page when popup is open for example
browser.leftClick('#cboxOverlay',100,100);
api documentation http://webdriver.io/api/action/leftClick.html#Usage