-1

I have a problem with selenium when i try to run my functional tests with behat , my tests worked perfectly before , i only installed php7 instead of php5 I don't know if this is the cause of the problem or not i've also upgraded my ubuntu to 16.04.

this is the error message I get:

enter image description here

enter image description here

anyone can help me out with this please ?

Usman Maqbool
  • 3,073
  • 10
  • 28
  • 41

1 Answers1

0

You need to download latest geckodriver from here and Looking at the examples at this

It seems like you need to do is set marionette to true in the desiered capabilities as below :-

$capabilities->setCapability('marionette', true);

Example:

$host = 'http://localhost:4444/wd/hub';
$capabilities = DesiredCapabilities::firefox();
$capabilities->setCapability('marionette', true);
$driver = RemoteWebDriver::create($host, $capabilities, 5000);
Saurabh Gaur
  • 21,274
  • 8
  • 42
  • 69
  • i downloaded geckodriver but i don't really know what to do with it or where i should put it ! any explanations please ? – zakaria bensassi Aug 02 '16 at 14:02
  • @zakariabensassi you need to provided that driver path when you are running selenium server jar as :- `java -Dwebdriver.gecko.driver = path/to/geckodriver.exe -jar selenium-server.jar`.. – Saurabh Gaur Aug 02 '16 at 14:10
  • thanks for your explanations , i did that it worked , but not perfectly now i can see the browser , but i have another error ! POST /session/ea10aa26-1337-4f3e-842d-cf68f76c24f3/moveto did not match a known command (WARNING: The server did not provide any stacktrace information) – zakaria bensassi Aug 03 '16 at 09:52
  • @zakariabensassi have a look [this link](https://github.com/SeleniumHQ/selenium/issues/2285) may be it helps..:) – Saurabh Gaur Aug 03 '16 at 09:56
  • i still have the issue with the session :/ – zakaria bensassi Aug 03 '16 at 14:41