Actions in selenium firefox

99封情书 提交于 2019-12-13 03:39:26

问题


I have been trying to perform the actions operation in firefox quantum version 57+ with selenium version 3.5.0 and using geckodriver 0.19.1. But the thing is it is unable to perform the click operation using Actions.

The code that I have written is :

WebElement ele = driver.findElement(By.xpath("//div[contains(@title,'" + projName + "')]"));    
new Actions(driver).click(ele).perform();

But the thing is this line of code is not getting executed and the click operation is not performed. This code has been running in the chrome latest versrion.

Can anyone help me out here whether currently there is still implementation going out to make Actions class stable with Firefox.


回答1:


geckodriver doesn't support Actions class, only the W3C WebDriver standard.

According to this github issue it will be added some time in the future, but there isn't any ETA for this.



来源:https://stackoverflow.com/questions/48399627/actions-in-selenium-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!