protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Hangs when on VPN via Cisco AnyConnect Secure Mobility Client

Open tempoc opened this issue 11 years ago • 1 comments

When pointing it to localhost or 0.0.0.0 I get:

Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1

It dies on a timeout.

  goog.global.setTimeout(function() { throw exception; }, 0);
                                            ^
Error: Timed out waiting for the WebDriver server at http://192.168.1.104:56508/wd/hub
    at Error (native)

Thinking it doesn't know how to properly resolve localhost IP. It's looking for 192.168.1.104 which is my local WiFi IP at the time I ran it, but I doubt that's my IP on the VPN.

tempoc avatar May 07 '15 20:05 tempoc

Protractor is merely calling out to webdriver with whatever url you pass, and doesn't do any resolution on its own (https://github.com/angular/protractor/blob/master/lib/driverProviders/driverProvider.js#L36)

If this is a problem it is likely going to have the same problem on pure webdriverjs. If this is a huge deal for you, you should try to open a ticket with webdriverjs. Otherwise consider just using the correct ip directly.

hankduan avatar May 11 '15 23:05 hankduan