-
Notifications
You must be signed in to change notification settings - Fork 852
With 4.18.1-20240224 I get a DevToolsActivePort file doesn't exist #1094
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
Comments
I did a try with I forgot to mention I have a |
edit Adding |
Hi,
$chromeOptions = new ChromeOptions();
$chromeOptions->addArguments(['--no-sandbox']);
$chromeOptions->addArguments($args);
// ... And please report if it fixed the issue. Also, this is probably not a bug in php-webdriver, but behavior of Chromedriver... And there is already multiple discussion threads for this: #898, #964, #1091... Also a stackoverflow question: https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t (I also see you created docker-selenium issue, so linking it for reference: SeleniumHQ/docker-selenium#2164) |
@OndraM Hi, I have updated in a comment I'm now using |
Please, try to reproduce the issue in the minimal setup possible. Could you please:
There seems to be some issue with your setup. |
I open the web browser and navigate to the script page.
|
What does it mean exactly, could you elaborate please? How you run the "example.php" script? |
What is not clear in I open my browser and navigate? I type in the address in the browser. |
Well, this is not a way to run such PHP script. You should be running it from command line using If the selenium is stared on you machine (and you can open http://localhost:4444 to see selenium dashboard), then you can run the script from the command line like this: php example.php |
I got it now, I tried that way early, also I uploaded the php on a VPS and tried both way, connecting to it via browser and in SSH but the result didn't differ. The only working option was using |
Ok, good to hear. But from all this I don't see there an bug in php-webdriver, so closing this issue. |
@OndraM The bug persist, it has not been resolved, just hidden under the rug. If you replicate my setup described above you will be able to replicate also the bug. |
@elnath78 Yup, this is what I did yesterday, and everything worked as expected. The $ docker-compose up -d
[+] Running 4/4
✔ Container selenium-hub Started 0.0s
✔ Container test-1094-chrome-1 Started 0.0s
✔ Container test-1094-firefox-1 Started 0.0s
✔ Container test-1094-edge-1 Started 0.0s
$ php example.php
The title is 'PHP - Wikipedia'
The current URL is 'https://en.wikipedia.org/wiki/PHP'
About to click to button with text: 'View history'
The title is 'PHP: Revision history - Wikipedia'
The current URI is 'https://en.wikipedia.org/w/index.php?title=PHP&action=history'
Array
(
[0] => Facebook\WebDriver\Cookie Object
(
[cookie:protected] => Array
(
[name] => cookie_set_by_selenium
[value] => cookie_value
[path] => /
[domain] => en.wikipedia.org
[secure] => 1
[httpOnly] =>
[sameSite] => Lax
)
)
) |
@OndraM did you use this from an external device? In my setup I was on |
@elnath78 No, I tried it locally. You are describing quite unusual setup, which is another lead to believe this is issue with your setup, not this library. And I am unable to help you with that, sorry. |
Uh oh!
There was an error while loading. Please reload this page.
Bug description
Fatal error: Uncaught Facebook\WebDriver\Exception\SessionNotCreatedException: Could not start a new session. Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist Host info: host: 'd1a93cda54a8', ip: '172.18.0.5' Build info: version: '4.18.1', revision: 'b1d3319b48' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.5.0-25-generic', java.version: '11.0.21' Driver info: driver.version: unknown Build info: version: '4.18.1', revision: 'b1d3319b48' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.5.0-25-generic', java.version: '11.0.21' Driver info: driver.version: unknown Build info: version: '4.18.1', revision: 'b1d3319b48' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.5.0-25-generic', java.version: '11.0.21' Driver info: driver.version: unknown in C:\xampp\htdocs\redacted\vendor\php-webdriver\webdriver\lib\Exception\WebDriverException.php on line 130
How could the issue be reproduced
Expected behavior
I'd be happy if I can set a connection, would be a great upgrade.
Php-webdriver version
1.15.1
PHP version
8.2.0
How do you start the browser driver or Selenium server
selenium in docker
Selenium server / Selenium Docker image version
4.18.1-20240224
Browser driver (chromedriver/geckodriver...) version
where should I run this?
Browser name and version
where should I run this?
Operating system
Ubuntu
Additional context
The text was updated successfully, but these errors were encountered: