kixiro
(kixiro)
03.Октябрь.2016 11:05:55
#1
Не удается заставить работать наведение на элемент через selenium.webdriver.ActionChains
со старой версией все работает, а вот с marionette драйвером (v 0.9) не хочет, выдает:
WebDriverException: Message: POST /session/1e21d6e1-46e5-4bd4-b0ba-ffd90fd40e00/moveto did not match a known command
кто-нибудь сталкивался с этим?
kixiro
(kixiro)
03.Октябрь.2016 11:45:04
#2
похоже не запилили ещё в этом “чудо драйвере”
opened 03:04AM - 18 Sep 16 UTC
closed 11:25PM - 10 May 17 UTC
marionette
selenium
geckodriver
Context click method of Actions class is not working in geckodriver. The same co… de is working fine in ChromeDriver & IEDriver.
- **OS** : ANY
- **Language** : Java
- **Browser Version** : 48.0,2
- **Driver Version** : latest(0.10.0)
**Code** :
```
Actions action = new Actions(driver);
String colrow="//tr["+rownumber+"]/td["+headerindex.get(colName)+"]";
action.contextClick(driver.findElement(By.xpath(colrow))).build().perform();
```
PFB for the exception caught.
```
org.openqa.selenium.UnsupportedCommandException: POST /session/d25239f1-b41a-4142-b1e9-eafc1ddddf71/moveto did not match a known command (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2 milliseconds
Build info: version: 'unknown', revision: '31c43c8', time: '2016-08-02 21:57:56 -0700'
System info: host: 'BlaBlaBla', ip: '192.168.2.6', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_73'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160823121617, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=48.0.2, platformVersion=6.3, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop}]
Session ID: d25239f1-b41a-4142-b1e9-eafc1ddddf71
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:683)
at org.openqa.selenium.remote.RemoteExecuteMethod.execute(RemoteExecuteMethod.java:35)
at org.openqa.selenium.remote.RemoteMouse.mouseMove(RemoteMouse.java:89)
at org.openqa.selenium.interactions.internal.MouseAction.moveToLocation(MouseAction.java:59)
at org.openqa.selenium.interactions.ContextClickAction.perform(ContextClickAction.java:40)
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java:50)
at org.etna.utils.TestUtility.rightCickOnCell(TestUtility.java:198)
at org.etna.customer.pageobjects.quickorder.QuickOrderPageObjects.rightClickOnASpecificCell(QuickOrderPageObjects.java:348)
at org.etna.modules.QuickOrderPadModuleTest.speedEntryCellExtension(QuickOrderPadModuleTest.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:197)
at org.etna.maincontroller.MainController.run(MainController.java:209)
at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:209)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:641)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:822)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1130)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:113)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:206)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:177)
```