About the hardcoded port 9515 #1068
RoyBellingan
started this conversation in
Ideas
Replies: 2 comments
-
php-webdriver is a client. It calls the chromedriver client on port 9515.
You can run chromedriver on other ports. There’s an argument to set the
port, and related configuration in PHP-webdriver
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If you check the code in Service.php You can not invoke chome/firefox using As the port parameter will be ignored. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So port is 9515 is just an arbitrary port like another... If is used by another process, php-webdriver can not start and we have to... manually replace it.
Can we just do something like this in
php-webdriver/lib/Firefox/FirefoxDriverService.php
Line 29 in 25a5655
$port = rand(9010,65535);
(which is what I am doing just now, and I can start multiple instance at the same time from different php process)
we could be fancy and probe if the port is open or not...
if there is interest I can also allow the port to be configurable from outside the class to have a specific value.
Beta Was this translation helpful? Give feedback.
All reactions