admin管理员组文章数量:1026989
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.
Share Improve this question edited Apr 8, 2017 at 13:14 Meghan asked Apr 8, 2017 at 2:02 MeghanMeghan 3052 gold badges6 silver badges18 bronze badges1 Answer
Reset to default 3Try 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
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.
Share Improve this question edited Apr 8, 2017 at 13:14 Meghan asked Apr 8, 2017 at 2:02 MeghanMeghan 3052 gold badges6 silver badges18 bronze badges1 Answer
Reset to default 3Try 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
本文标签: javascript webdriverioclick on specific coordinatesStack Overflow
版权声明:本文标题:javascript webdriver.io : click on specific coordinates - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745659839a2161821.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论