javascript webdriver.io : click on specific coordinates - Stack Overflow

Actually I click on a button and a pop over es.As I click anywhere outside the pop over, it goes. Tha

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 badges
Add a ment  | 

1 Answer 1

Reset to default 3

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745659841a4638767.html

相关推荐

  • javascript webdriver.io : click on specific coordinates - Stack Overflow

    Actually I click on a button and a pop over es.As I click anywhere outside the pop over, it goes. Tha

    6小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信