Skip to content
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

allow override of post url in WebDriver.php #33

Open
GoogleCodeExporter opened this issue Aug 27, 2015 · 1 comment
Open

allow override of post url in WebDriver.php #33

GoogleCodeExporter opened this issue Aug 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use chromedriver download from google code project
2. Use php-webdriver-bindings to communicate with chromedriver

This is probably an issue with the chromedriver project more than this project, 
but I was able to fix it with a small modification to WebDriver.php that does 
not change the behavior--just allows an override of the request url.

It seems that chrome driver expects post requests to come in to URL "/", 
instead of "/wd/hub".

I changed lines 26 and 27 in WebDriver.php to allow that override from a client 
object: 

  function __construct($host, $port, $url = "/wd/hub") {
        parent::__construct("http://" . $host . ":" . $port . $url);

It works fine for me so I thought I would share it.

Original issue reported on code.google.com by [email protected] on 24 Jan 2013 at 2:45

@GoogleCodeExporter
Copy link
Author

Is this issue with specific version of ChromeDriver as well? What version of 
Chrome, ChromeDriver, and Selenium?

I had no issues with Chrome v27, Selenium 2.28, and not recent/latest version 
of ChromeDriver (don't recall specific version).

Original comment by [email protected] on 9 Jun 2013 at 7:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant