-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Wrong URL Path causes Proxy error. #2437
Comments
Duplicate of #2309 |
I have the version [email protected] and I still facing the problem. But when I use My workaround it works, As I said, if I change the code to this, its worked var path = this.options_.path; otherwise I recive this error Console log Without workaround index.js line 266 path ------> /wd/hub/sessionConsole log With workaround |
The fix is not in 2.53.3. It will be in the next release
|
Meta - Wrong URL Path causes Proxy error.
OS:
Selenium Version:
Browser:
Browser Version:
Expected Behavior -
I am using selenium with Browserstack with Node to test my angular programm.
I am working in a Company and we are behind a Proxy.
I tested the conection from my computer with Browserstack with Nightwatch and it worked perfect.
But when I tried to use Selenium I faced a Proxy error. I am trying to solve this problem for almost 3 days until today, when I found the problem.
Actual Behavior -
The problem was in the URL path:
in the Node.js BrowserStack example we have this URL
usingServer('http://hub-cloud.browserstack.com/wd/hub').
but my proxy shown only
/wd/hub/session
I think I found the problem by
http/index.js (line 273)
var path = this.options_.path; if (path[path.length - 1] === '/' && httpRequest.path[0] === '/') { path += httpRequest.path.substring(1); } else { path += httpRequest.path; // hier we have only the path, without host }
I have done this
path = "http://" + this.options_.host + path;
and its worked
Steps to reproduce -
Use the example from BrowserStack
https://www.browserstack.com/automate/node
Set the proxy
usingWebDriverProxy("your Proxy 8080").
Error
Der folgende Fehler wurde beim Versuch die URL /wd/hub/session zu holen festgestellt:
The text was updated successfully, but these errors were encountered: