You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't open ChromeDriver without Selenium Standalone Server. #299
But the browser never opens. I can see in the Activity Manager and terminal that it opens up but ends up timing out.
PHP Fatal error: Uncaught exception 'Facebook\WebDriver\Exception\TimeOutException' with message 'Timed out waiting for http://localhost:9515/status to become available after 20000 ms.' in /Users/.../php/vendor/facebook/webdriver/lib/Net/URLChecker.php:36
I successfully ran the chromedriver using the same file in both node and python bindings.
Forget what I said. It is early in the morning and I didn't read your question well. I had not recognized that you are trying to run in without the server🤐
@php-denken Hi, do you still face the issue? As I was also not able to start the ChromeDriver directly, I've changed the way the standalone chrome driver is started. Could you please try using this branch to see if the issue lasts or not?
And then run composer require facebook/webdriver:dev-symfony-process@dev
the updated version should be installed and you will be able to try it. Could you please test it?
$ php run.php
PHP Fatal error: Uncaught Facebook\WebDriver\Exception\TimeOutException: Timed out waiting for http://localhost:9515/status to become available after 20000 ms. in /var/www/project/vendor/facebook/webdriver/lib/Net/URLChecker.php:37
Stack trace:
#0 /var/www/project/vendor/facebook/webdriver/lib/Remote/Service/DriverService.php(93): Facebook\WebDriver\Net\URLChecker->waitUntilAvailable(20000, 'http://localhos...')
#1 /var/www/project/vendor/facebook/webdriver/lib/Remote/Service/DriverCommandExecutor.php(51): Facebook\WebDriver\Remote\Service\DriverService->start()
#2 /var/www/project/vendor/facebook/webdriver/lib/Chrome/ChromeDriver.php(51): Facebook\WebDriver\Remote\Service\DriverCommandExecutor->execute(Object(Facebook\WebDriver\Remote\WebDriverCommand))
#3 /var/www/project/vendor/facebook/webdriver/lib/Chrome/ChromeDriver.php(37): Facebook\WebDriver\Chrome\ChromeDriver->startSession(Object(Facebook\WebDriver\Rem in /var/www/project/vendor/facebook/webdriver/lib/Net/URLChecker.php on line 37
Fatal error: Uncaught Facebook\WebDriver\Exception\TimeOutException: Timed out waiting for http://localhost:9515/status to become available after 20000 ms. in /var/www/project/vendor/facebook/webdriver/lib/Net/URLChecker.php on line 37
Facebook\WebDriver\Exception\TimeOutException: Timed out waiting for http://localhost:9515/status to become available after 20000 ms. in /var/www/project/vendor/facebook/webdriver/lib/Net/URLChecker.php on line 37
Call Stack:
0.0002 355192 1. {main}() /var/www/project/run.php:0
0.0028 500448 2. Facebook\WebDriver\Chrome\ChromeDriver::start() /var/www/project/run.php:7
0.0060 676544 3. Facebook\WebDriver\Chrome\ChromeDriver->startSession() /var/www/project/vendor/facebook/webdriver/lib/Chrome/ChromeDriver.php:37
0.0065 694056 4. Facebook\WebDriver\Remote\Service\DriverCommandExecutor->execute() /var/www/project/vendor/facebook/webdriver/lib/Chrome/ChromeDriver.php:51
0.0065 694056 5. Facebook\WebDriver\Chrome\ChromeDriverService->start() /var/www/project/vendor/facebook/webdriver/lib/Remote/Service/DriverCommandExecutor.php:51
0.0140 1076776 6. Facebook\WebDriver\Net\URLChecker->waitUntilAvailable() /var/www/project/vendor/facebook/webdriver/lib/Remote/Service/DriverService.php:93
So after a lot of digging I finally that discovered that PHP builds installed with Homebrew using the --with-homebrew-curl flag will not play nice with WebDriver.
Activity
php-denken commentedon May 21, 2016
Did you start a selenium server? Download it here http://www.seleniumhq.org/download/ (the 2.53.0 link) and start it with java -jar [downloaded file]. Java has to be installed on your machine.
any626 commentedon May 21, 2016
I didn't. The purpose of this is to run it without the server. Directly to the chrome driver.
php-denken commentedon May 21, 2016
Forget what I said. It is early in the morning and I didn't read your question well. I had not recognized that you are trying to run in without the server🤐
OndraM commentedon Oct 14, 2016
@php-denken Hi, do you still face the issue? As I was also not able to start the ChromeDriver directly, I've changed the way the standalone chrome driver is started. Could you please try using this branch to see if the issue lasts or not?
Its in a branch in mine fork.
If you change your composer.json to contain this:
And then run
composer require facebook/webdriver:dev-symfony-process@devthe updated version should be installed and you will be able to try it. Could you please test it?
OndraM commentedon Nov 2, 2016
The way chrome processes are started was changed - please try in next php-webdriver and let us know if the problem persists!
OndraM commentedon Jan 14, 2017
Should be fixed in php-webdriver 1.3.0.
frankiejarrett commentedon Jul 22, 2017
@OndraM I'm experiencing the same problem described here. Possible regression?
ChromeDriver 2.31.488774
Facebook\WebDriver 1.4.1
Test
run.phpbootstrap:Output:
Response from http://localhost:9515/status:
{ "sessionId": "", "status": 0, "value": { "build": { "version": "alpha" }, "os": { "arch": "x86_64", "name": "Mac OS X", "version": "10.12.6" } } }frankiejarrett commentedon Jul 23, 2017
So after a lot of digging I finally that discovered that PHP builds installed with Homebrew using the
--with-homebrew-curlflag will not play nice with WebDriver.The problem went away after I ran this:
OndraM commentedon Jul 24, 2017
@fjarrett Thanks for the information! Would be useful for others when facing the same issue :).