Web driver freeze exception

Trying to use Codeception Web Driver and Selenium to emulate ajax through an acceptance test. I used PhpBrowser, but when I had problems with Ajax, my friend suggested WebDriver.

After turning on and loading selenium (and starting it) I get the following error.

[WebDriverCurlException] Curl error thrown for http POST to http://127.0.0.1:4444/wd/hub/session with params: {"desiredCapabilities":{"browserName":"googlechrome"}} Failed to connect to 127.0.0.1 port 4444: Connection Refused 

I made sure that I was running selenium on port 4444.

  java -jar selenium-server.jar -port 4444 

accept.suite.yml below

  class_name: AcceptanceTester modules: enabled: - WebDriver - REST config: WebDriver: url: 'http://life1605.dev' browser: googlechrome REST: url: 'http://life1605.dev' 
+8
curl selenium testing selenium-webdriver webdriver
source share
4 answers

I had the same problem with the same error message. For some strange reason, it seems that starting the selenium server from the command line did not work.

My solution was manually opening the selenium server through Windows Explorer, right-click on the file, select Open with -> Java Platform SE Binary.

It took me almost 3 hours to figure this out, so I hope this helps someone.

+3
source share

I had this problem and it turned out that the new version of Firefox is not compatible with the addon that Selenium uses to communicate with Firefox.

When you start your tests, you will see how a new Firefox window appears, and 30 seconds before it disappears again. During this time, if you type about:addons in the URL field and then click "Extensions", you will see "Firefox WebDriver" there, and it should be enabled.

This was disabled for me, as it was incompatible with the latest version of Firefox. So the solution in this case was to either downgrade Firefox or wait for Selenium to update.

Please note that the addon is installed only in the tested instance of Firefox, so you will not see it when you use Firefox outside of Selenium.

+3
source share

I had the same problem, I forgot to run phantom.js before trying to run any browser tests. I ran phantomjs and it worked.

+1
source share

I had this problem and then I remembered that I needed to run Xvfb -ac :0 -screen 0 1280x1024x16 & after each restart of Homestead (before running the Dusk tests).

Then Dusk works instead of saying:

Facebook \ WebDriver \ Exception \ WebDriverCurlException: curl error for http POST to / session with parameters: {"desiredCapabilities": {"browserName": "chrome", "platform": "ANY"}}

Operation completed after 30,000 milliseconds with 0 bytes received

See https://stackoverflow.com>

0
source share

All Articles