Skip to content

UnknownCommandException mouseMoveTo when calling moveToElement()  #462

@paulbriton

Description

@paulbriton

What are you trying to achieve? (Expected behavior)

Trigger an hover event by moving mouse to element coordinates.

What do you get instead? (Actual behavior)

UnknownCommandException: mouseMoveTo

How could the issue be reproduced? (Steps to reproduce)

$capabilities = DesiredCapabilities::firefox();
$driver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);

$driver->get("https://www.mozilla.org/en-US/");
$element = $driver->findElement(WebdriverBy::id("nav-button-menu"));
$driver->action()->moveToElement($element)->perform();

This looks like an old endpoint from the JsonWireProtocol which has been removed in some drivers (eg. IE and geckodriver). I think actions are the way to go now which I thought it was by calling action() method.
IE and Geckodriver don't support the old APIs, so we'll have to implement w3c protocol in order to use latest versions of Selenium server.
Thank's for your help ;)

Details

  • Php-webdriver version: 1.4.1
  • Selenium server version: 3.5.1
  • InternetExplorerDriver: 3.5.1
  • Geckodriver: 0.17.0
  • PHP version: 5.6
  • Operating system: Windows 10
  • Browser used + version: Firefox 52, 56; IE 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions