-
Notifications
You must be signed in to change notification settings - Fork 849
Closed
Labels
Description
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
Reactions are currently unavailable