1

I'm trying to do testing with Selenium 2 and phpunit. I'm using selenium-server-standalone-2.53.1.jar and launch the test firefox opens blank and does nothing.

phpunit gives this message:

 PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output

Can anyone tell me what happens? Thmks.

davidplpz
  • 13
  • 2

1 Answers1

3

Use geckodriver.

You need geckodriver for running tests in latest Firefox browsers. Firefox doesn't support Firefox driver anymore.

  1. Download geckodriver and place it in PATH
  2. Use Selenium 3.0 for running tests

Or use Firefox 47.* or 45 ESR with the old driver.

Background

Firefox release 48.0 states the following:

Add-ons that have not been verified and signed by Mozilla will not load

Firefox driver fell under this category, and it had no chances of passing verification without being re-written. Geckodriver, though, is built in the same way as Chromedriver and IEdriver are, and kinda works.

Some more info is available here

Community
  • 1
  • 1
BVengerov
  • 2,947
  • 1
  • 18
  • 32