0
WebDriver的moveToElement
不適用於Firefox和IE。它在Chrome瀏覽器中運行得很好。WebDriver中是否有IE8和Firefox的mouseOver解決方法?
這裏是我使用的代碼:
Actions builder = new Actions(driver);
builder.moveToElement(driver.findElement(By.xpath(Loader.OR.getProperty(object))))
.moveToElement(driver.findElement(By.xpath(data)))
.click();
Action selectMultiple = builder.build();
selectMultiple.perform();
再次,可與Chrome,但無法與IE或Firefox。