webdriver版本是2.25,chromedriver是23.0版本,chrome浏览器是最新的(目前是21.0.180.89)
被测应用程序是 GWT 应用程序,我有执行拖放的测试用例。
由于某种原因,拖放功能在 Chrome 中停止工作,而 IE 和 Firefox 工作正常。以下是失败的代码(不幸的是,我无法提供对该应用程序的公共访问权限。如果您需要更多详细信息,请告诉我):
public void dragPropertyToCustomSection(String propertyName) {
WebElement source = driver.findElement(By.id(propertyName));;
WebElement target = driver.findElement(By.cssSelector("div.drop-target"));
(new Actions(driver)).dragAndDrop(source, target).build().perform();
clickSaveChangesButton();
}
我已经尝试了我所知道的一切,但仍然无法让它在 Chrome 中工作。任何想法为什么这不起作用?
这与http://code.google.com/p/selenium/issues/detail?id=4455相同吗?