![](/img/trans.png)
[英]Unable to select an option from right click menu in selenium using java
[英]Unable to right click in firefox browser using selenium (java) automation
僅在firefox瀏覽器中無法右鍵單擊我的硒腳本。 以下是我使用的部分代碼
WebElement test = driver.findElement(By.id("testing"));
action.contextClick(test).perform();//right click on job area
下面是執行時看到的錯誤:
org.openqa.selenium.UnsupportedCommandException: mouseMoveTo
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
嘗試使用-
WebElement element = driver.findElement(By.id("testing"));
Actions action = new Actions(driver).contextClick(element);
action.build().perform();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.