Unable to Move Out of ViewPort Pane - Selenium

后端 未结 2 1647
小鲜肉
小鲜肉 2021-01-16 23:47

I am trying to automate the webpage \"http://the-internet.herokuapp.com/exit_intent\" where if we move out of the Viewpane towards the top of the page then the pop up window

2条回答
  •  -上瘾入骨i
    2021-01-17 00:29

    For me this is working , using the webrowser Chrome :

    Actions action=new Actions(driver);
    action.moveByOffset(600, -1).build().perform();
    

    This is not working for me:

    action.moveToElement(e).moveByOffset(600,-1).build().perform();
    

提交回复
热议问题