我Selenium测试使用的onMouseOver功能,如硒的webdriver和Firefox 18
List<WebElement> menuitems = getDriver().findElements(By.tagName("li"));
Actions builder = new Actions(getDriver());
WebElement menu = menuitems.get(2);
getDriver().manage().timeouts().implicitlyWait(Constants.IMPLICITY_WAIT, TimeUnit.SECONDS);
builder.moveToElement(menu).build().perform();
我使用Firefox的驱动程序。由于Firefox更新到版本18,我的测试停止工作。我知道这与本地事件支持有关 - 但不支持本地事件的版本18,还是我能够启用它们?如果没有,我的代码是否有替代实现?
我使用的是java 2.28.0的selenium。
如果你完全卡住了,你可以暂时使用Sikuli。我个人更喜欢Selenium的“Actions”类,因为它更容易。 – djangofan
任何有关Selenium 2.29或2.30是否解决此问题的消息? –