简体   繁体   English

无法使用Selenium(Java)自动化在firefox浏览器中右键单击

[英]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.

相关问题 无法使用 java 在 selenium 的右键菜单中选择 select - Unable to select an option from right click menu in selenium using java Java-无法在Firefox浏览器中使用Selenium网格 - Java - Unable to use selenium grid with firefox browser 选择Firefox浏览器的“后退”按钮以右键单击,然后从右键单击Selenium Web Driver-Java中的“菜单”。 - Select the “back” button of the Firefox browser to right click and Select the Option from the right click Menu in Selenium Web Driver - Java 无法使用Selenium WebDriver连接到Firefox浏览器? - Unable to connect to firefox browser using selenium webdriver? 无法使用简单的Java代码进行Selenium浏览器自动化的下一个注释 - Unable to go for next Annotation of selenium browser automation with simple java codes Selenium Automation无法单击链接 - Selenium Automation unable to click the link 如何右键单击元素并使用JAVA中的硒将其另存为mozilla firefox中的文本文件 - How to Right click on element and save as text file in mozilla firefox using selenium in JAVA Java / Selenium自动化单击xpath - Java/Selenium automation click on xpath Selenium Web驱动程序| Java | 无法在Firefox浏览器窗口之间切换 - Selenium web driver | java | unable to switch between firefox browser windows 无法使用给定的URL打开Firefox浏览器 - Selenium Webdriver&Java - Unable to open Firefox browser with given URL - Selenium Webdriver & Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM