-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open ChromeDriver without Selenium Standalone Server. #299
Comments
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. |
I didn't. The purpose of this is to run it without the server. Directly to the chrome driver. |
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? Its in a branch in mine fork. If you change your composer.json to contain this:
And then run |
The way chrome processes are started was changed - please try in next php-webdriver and let us know if the problem persists! |
Should be fixed in php-webdriver 1.3.0. |
@OndraM I'm experiencing the same problem described here. Possible regression? ChromeDriver 2.31.488774 Test <?php
require __DIR__ . '/vendor/autoload.php';
putenv('webdriver.chrome.driver=/path/to/chromedriver');
$driver = Facebook\WebDriver\Chrome\ChromeDriver::start(); 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"
}
}
} |
So after a lot of digging I finally that discovered that PHP builds installed with Homebrew using the The problem went away after I ran this:
|
@fjarrett Thanks for the information! Would be useful for others when facing the same issue :). |
I did what the wiki said, which is the following:
But the browser never opens. I can see in the Activity Manager and terminal that it opens up but ends up timing out.
I successfully ran the chromedriver using the same file in both node and python bindings.
The text was updated successfully, but these errors were encountered: