[英]Unable to right click in firefox browser using selenium (java) automation
Only in firefox browser unable to right click in my selenium script. 仅在firefox浏览器中无法右键单击我的硒脚本。 Below are the piece of code i have used
以下是我使用的部分代码
WebElement test = driver.findElement(By.id("testing"));
action.contextClick(test).perform();//right click on job area
And below is the error is see while execute : 下面是执行时看到的错误:
org.openqa.selenium.UnsupportedCommandException: mouseMoveTo
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
Try using this - 尝试使用-
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.