-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWP actions endpoints do not get translated to W3C by standalone #3693
Comments
Same exception iam also getting |
Are you using standalone server? |
Yes iam using standalone server |
i tried with standalone and Selenium client also both it is not working xception in thread "main" org.openqa.selenium.UnsupportedCommandException: mouseMoveTo |
I'm not sure standalone is handling w3c commands correctly yet, but through the bindings it should work. How are you constructing your driver? |
Actually no iam using geckodriver. |
Huh? |
public static void main(String[] args) |
Can you try it with an absolute path for the |
i tried but it not working same exception INFO: Detected dialect: W3C |
What version of geckodriver are you using? |
geckodriver - 15.0 |
In the issue you mentioned Firefox 52, which one are you using? |
I am facing the same problem: Firefox 52.0.2 org.openqa.selenium.UnsupportedCommandException: mouseMoveTo |
It looks like it is trying to use the old non-w3c actions commands with geckodriver, will have to investigate |
I tried to use w3c actions and ran into another problem. It seems the FindElement command returns the element id as find element request pointerMove request using pointerMove request using thanks in advance |
Also get Selenium Standalone 3.3.1
|
I ran into this as well where with the client bindings using Capybara the hover actions worked properly in Firefox 52, geckodriver 0.15, and selenium-3.3.1, but received this exception with the standalone server |
Any update on this? I'm running into the same issue I believe, I'm using the Docker Selenium Grid (version 3.3.1) and RemoteWebDriver: |
selenium 3.4.0 iam getting this exception now Exception in thread "main" org.openqa.selenium.WebDriverException: performActions |
I am getting this error as well: WebDriver\Exception\UnknownCommand: mouseMoveTo |
Fixed in Selenium 3.4 + geckodriver 0.16 |
@barancev This is not fixed... @dannyfinks is correct, this works using native client bindings but not via HTTP requests through Selenium Grid, checked when running locally everything works, when running via a Grid setup it appears that HTTP listener for Selenium is not setup to accept a Tested using 3.4.0 (both strict and using Selenium Grid Extras) |
@barancev This has also been found to be the case not only in Ruby's Capybara but also using JUnit from Java/Groovy. I would be willing to contribute a test to this project in order to make sure that it in fact is working for the next release. Sample Gist: https://gist.github.com/mikesalvia/3415514c0a0bc637c579454969bc4ab3 This visits Google and attempts a hover and click on the query text field. More information can be provided as it is needed... As this is affecting 2 different languages and 2 different frameworks and ONLY in the remote driving capacity I am starting to feel more convinced that it is an issue with the HTTP listener/handler. |
Should I create a new issue or can this one be re-opened since it is not fixed? |
@mikesalvia, I suggest creating a new issue and link to this issue if you don't hear back by tomorrow. I am seeing it as well @barancev and @lmtierney. Adding @AutomatedTester and @andreastt to get their thoughts. Using geckodriver 0.16, Firefox 53.0 and selenium 3.4.0. As indicated in earlier comments it's with this step - builder.moveToElement(element).build().perform(); Here's the stack trace I get - org.openqa.selenium.UnsupportedCommandException: mouseMoveTo
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: '5d5bd315f467', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-42-generic', java.version: '1.8.0_121'
Driver info: driver.version: RemoteWebDriver
Command duration or timeout: 60 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'testphreak-MacBook-Pro', ip: '10.1.214.164', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_92'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.1OBOghe58AHu, rotatable=false, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, webdriver.remote.sessionid=9d3a58d5-67fe-4d39-9dc4-92a6e5de02f1, acceptInsecureCerts=false, browserVersion=53.0, platformVersion=4.4.0-42-generic, moz:processID=4515, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, platformName=linux, cssSelectorsEnabled=true}]
Session ID: 9d3a58d5-67fe-4d39-9dc4-92a6e5de02f1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)
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.MoveMouseAction.perform(MoveMouseAction.java:39)
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java:50)
at com.axiom.turbo.webdriver.pages.broker.SomePage.hoverContent(SomePage.java:365) |
same issue here:
protractor: 5.1.2 |
Likewise, |
the old selenium way doing "/session/<session_id>/moveto" doesn't work with geckodriver. They support the W3C actions API. This implements an alternative move command using actions. See https://www.w3.org/TR/webdriver/#pointer-actions
Hello, how does it look with releasing this fix? Or is planned new release in short time? Can I get somewhere information about releases due date? Thanks for answer. I was looking in web but I didn't find any information. |
@Drimix20 this may have been fixed with "Grid will make use of W3C capabilities in preference to the JSON Wire Protocol ones." |
@dannyfinks @Drimix20 keep in mind the changelog has been updated but we haven't released yet. It will be soon |
Thanks for answers to all of you. @lmtierney can I find somewhere written due date of planned releases? Or can I find out somehow something like roadmap? |
@Drimix20 No such planning or roadmaps exist. This project is all volunteer based so releases happen when people have enough free time from their normal day jobs to get everything satisfactory for a release. |
- Add gecko driver as configuration option to be used in the local driver provider. - Nit fixes to use string[] over Array<string> in the configParser.ts. - Add functionality to addDefaultBinaryLocs_ to use the geckoDriver value set in the config or to check locally in the webdriver-manager/selenium folder. - Fix transpile errors in locator. Missing toString in ProtractorLocator interface. - Fix transpile errors in element. Cast wdpromise.Promise<{}> to wdpromise.Promise<T>. - xit spec/basic/action_spec.js based on [selenium-webdriver issue angular#3693](SeleniumHQ/selenium#3693). Added a // TODO comment to remove xit when selenium-webdriver resolves issue. closes angular#4408 and closes angular#4411.
…ig (#4412) - Add gecko driver as configuration option to be used in the local driver provider. - Nit fixes to use `string[]` over `Array<string>` in the configParser.ts. - Add functionality to `addDefaultBinaryLocs_` to use the `geckoDriver` value set in the config or to check locally in the `webdriver-manager/selenium` folder. - Fix transpile errors in locator. Missing toString in ProtractorLocator interface. - Fix transpile errors in element. Cast wdpromise.Promise<{}> to wdpromise.Promise<T>. - xit spec/basic/action_spec.js based on [selenium-webdriver issue #3693](SeleniumHQ/selenium#3693). Added a // TODO comment to remove xit when selenium-webdriver resolves issue. closes #4408 and closes #4411.
Should be fixed in version 3.5, please reopen the issue if it's not true. |
Anyone have Maven Dependency of Selenium 3.5? |
@akashg-ezdi I would like to but selenium 3.5 is not in maven repository. I can't use it. |
FYI: version 3.5.1 is available in maven central |
Hi All! @barancev For me it is still not working on remotewebdriver. I use c#, selenium in version 3.5.2 and geckodriver 0.18 and when run on selenium grid I get this exception:
|
Does not work for me (FF46, WIN64, Selenium standalone 3.6, geckodriver 0.19.0):
I have an error:
|
What I noticed was that the issue is resolved unless the element is not in view. In my particular example the element I performed the mouseMoveTo was further down the page and the driver must not be scrolling into view of the element. Seems like a separate bug that I'll open outside the scope of this. |
For me, this appears to be related to the version of firefox. |
Failing on 57.0.2 (64-bit) - Quantum |
failing on window 7 and osx for FF57 |
Please don’t hijack old issues that are unrelated to your own. |
Meta -
OS:
OSX 10.11.6
Selenium Version:
3.3.1
Browser:
Firefox
Browser Version:
52.1
Expected Behavior -
As per #2285, mouse hover events should work with selenium 3.x and geckodriver 0.15.
Actual Behavior -
It gives error :
org.openqa.selenium.UnsupportedCommandException: mouseMoveTo
Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800'
System info: host: 'MacBook-Pro-4.local', ip: 'fe80:0:0:0:6203:8ff:fea6:d310%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: RemoteWebDriver
Command duration or timeout: 9 milliseconds
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:638)
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.MoveMouseAction.perform(MoveMouseAction.java:43)
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java:36)
at org.openqa.selenium.interactions.Actions$BuiltAction.perform(Actions.java:637)
at org.openqa.selenium.interactions.Actions.perform(Actions.java:596)
at PageObjects.CoverStoriesPage.tap_NextButton_onHints(CoverStoriesPage.java:435)
at PageObjects.CoverStoriesPage.commentOnArticle(CoverStoriesPage.java:325)
at tests.CoverStoriesTest.addCommentOnArticle(CoverStoriesTest.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:646)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:811)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1129)
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:746)
at org.testng.TestRunner.run(TestRunner.java:600)
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:1264)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
at org.testng.TestNG.runSuites(TestNG.java:1104)
at org.testng.TestNG.run(TestNG.java:1076)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
Caused by: org.openqa.selenium.UnsupportedCommandException: mouseMoveTo
Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800'
System info: host: 'MacBook-Pro-4.local', ip: 'fe80:0:0:0:6203:8ff:fea6:d310%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: RemoteWebDriver
Build info: version: '3.3.1', revision: '5234b325d5', time: '2017-03-10 09:10:29 +0000'
System info: host: 'MacBook-Pro-4.local', ip: 'fe80:0:0:0:6203:8ff:fea6:d310%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_73'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:220)
at org.openqa.selenium.remote.http.AbstractHttpCommandCodec.encode(AbstractHttpCommandCodec.java:118)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:157)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteExecuteMethod.execute(RemoteExecuteMethod.java:35)
at org.openqa.selenium.remote.RemoteMouse.mouseMove(RemoteMouse.java:89)
at org.openqa.selenium.support.events.internal.EventFiringMouse.mouseMove(EventFiringMouse.java:58)
at org.openqa.selenium.remote.server.handler.interactions.MouseMoveToLocation.call(MouseMoveToLocation.java:59)
at org.openqa.selenium.remote.server.handler.interactions.MouseMoveToLocation.call(MouseMoveToLocation.java:32)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Steps to reproduce -
The text was updated successfully, but these errors were encountered: