AbstractMethodError:org.openqa.selenium.remote.RemoteWebElement.getCoordinates()Lorg / openqa / selenium / interactions / Coordinates;

时间:2019-05-16 12:39:04

标签: java selenium-webdriver cucumber

我正在尝试使用Java和Cucumber BDD框架中的硒自动化Airasia主页。该代码对我来说看起来不错。我在Actions类中遇到错误。单击错误,将我重定向到MouseActions类。删除了该类中的某些行。

我的意图是通过鼠标交互作用单击origin字段,然后在该字段中输入数据。

WebElement elem = dr.findElement(By.xpath("//label[contains(text(),'Origin')]"));
Actions action = new Actions(dr);
action.moveToElement(elem);
action.click();
action.sendKeys(Origin);
action.sendKeys(Keys.ENTER).build().perform();

我试图寻找所有可能的解决方案,并且硒得到了更新。

我的意图是通过鼠标交互来单击“起源”字段并在该字段中输入数据

0 个答案:

没有答案