硒Firefox中的动作 [英] Actions in selenium firefox
问题描述
我一直在尝试使用硒版本3.5.0在firefox Quantum版本57+中执行动作操作,并使用geckodriver 0.19.1.但事实是它无法使用操作执行点击操作.
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.
我写的代码是:
WebElement ele = driver.findElement(By.xpath("//div[contains(@title,'" + projName + "')]"));
new Actions(driver).click(ele).perform();
但是问题是这行代码没有被执行,并且单击操作没有被执行.这段代码已在chrome最新版本中运行.
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.
任何人都可以在这里帮助我,目前是否还有实现使Firefox的Actions类稳定的实现.
Can anyone help me out here whether currently there is still implementation going out to make Actions class stable with Firefox.
推荐答案
geckodriver
不支持Actions
类,仅支持W3C WebDriver标准.
geckodriver
doesn't support Actions
class, only the W3C WebDriver standard.
根据此 github问题,它将在将来的某个时间添加,但这没有任何预计到达时间.
According to this github issue it will be added some time in the future, but there isn't any ETA for this.
这篇关于硒Firefox中的动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!