Use of 'ClickAt ' selenium command

后端 未结 5 1690
感情败类
感情败类 2020-12-31 05:24

I\'m confused about the difference between the Click and ClickAt commands in selenium. Where can I use the ClickAt command?

5条回答
  •  太阳男子
    2020-12-31 05:42

    I noticed some differences between click() and clickAt() when testing a ExtJS app. For example, if I try to click a tab in a Ext.TabPanel, click() command does not work, although I provide it with an correct xpath, and clickAt() works fine. Code looks like this:

    click("//li[@id='tab-panel-id__second-tab-id']/a[2]/em/span/span")
    

    doesn't work, but

    clickAt("//li[@id='tab-panel-id__second-tab-id']/a[2]/em/span/span","0,0")
    

    works. Notice that coordinates are (0,0)

    I can't figure out why this happens...

提交回复
热议问题