selenium icon indicating copy to clipboard operation
selenium copied to clipboard

UnsupportedCommandException on MouseMove by using Selenium 3, Firefox and geckodriver.exe

Open dgofman opened this issue 9 years ago • 11 comments

OS: Windows 7 and 10 Selenium Drivers: 3.0.1 Browser: Firefox 50.1.0 Browser Drivers: geckodriver-v0.13.0-win32.zip

Step to Reproduce:

Actions action = new Actions(driver); action.moveToElement(element, 10, 10); action.build().perform();

Exception:

org.openqa.selenium.UnsupportedCommandException: POST /session/f8fc621e-69fc-4544-8293-782166ff4b01/moveto did not match a known command Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, appBuildId=20161208153507, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, processId=12952, browserVersion=50.1.0, platformVersion=10.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=windows_nt}] Session ID: f8fc621e-69fc-4544-8293-782166ff4b01 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.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:127) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:93) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:42) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:163) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) at org.openqa.selenium.remote.RemoteExecuteMethod.execute(RemoteExecuteMethod.java:35) at org.openqa.selenium.remote.RemoteMouse.mouseMove(RemoteMouse.java:97) at org.openqa.selenium.interactions.MoveToOffsetAction.perform(MoveToOffsetAction.java:41) at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java:50)

dgofman avatar Jan 19 '17 04:01 dgofman

Just as the exception states, actions are not supported in geckodriver + Firefox yet. They are being added now but require API updates to the client bindings first

lmtierney avatar Jan 19 '17 10:01 lmtierney

really wish Github would do fuzzy matching when people raise bugs and suggest bugs that it could be.

Duplicate of #2285

AutomatedTester avatar Jan 19 '17 11:01 AutomatedTester

Can we get Selenium 2 drivers working on latest Firefox or at least exposed built in Firefox drivers in Selenium 2 as external file.

dgofman avatar Jan 19 '17 18:01 dgofman

The instructions on how to do this are here if you're so inclined #2942

lmtierney avatar Jan 19 '17 18:01 lmtierney

To much instructions and people trying and failing. Can someone post an article how we can use Selenium 2 drivers in latest Firefox

dgofman avatar Jan 19 '17 19:01 dgofman

That is the only way, in that issue I just linked

lmtierney avatar Jan 19 '17 19:01 lmtierney

Getting Same error "keys did not match a known command"

Such a luck.... just started selenium learning 3.0.1 to minimize the bugs by using automation testing and here... I got bugs in automation tools as well ;)

Anyway, switching to FireFox45 along with selenium 2.x would work ? I just need to continue my learning and can't afford to be de tracked by such bugs !

xikandar avatar Jan 21 '17 11:01 xikandar

Yes, using FF45 ESR and Selenium < 3.0 would work. Alternatively, using FF45 ESR and Selenium 3 will work as long as you pass false to the marionette capability. Selenium 3 defaults this capability to true

lmtierney avatar Jan 21 '17 15:01 lmtierney

just started selenium learning 3.0.1 to minimize the bugs by using automation testing and here... I got bugs in automation tools as well

welcome to test automation! (however, i'd call this an unimplemented feature, not a bug)

cgoldberg avatar Jan 21 '17 15:01 cgoldberg

It's now a over a year later, any update on support for mouseMove? Not seeing it addressed in changelog.

lkende avatar Mar 02 '18 17:03 lkende

https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOG#L89

jleyba avatar Mar 02 '18 20:03 jleyba