selenium-standalone icon indicating copy to clipboard operation
selenium-standalone copied to clipboard

unable to connect to selenium-server started via an SSH session

Open tnguyen14 opened this issue 10 years ago • 4 comments

when I run selenium-standalone start over an SSH session, for some reason when I run the tests with webdriverio, it cannot connect to the selenium server.

tnguyen14 avatar Jan 05 '16 22:01 tnguyen14

Are you running the tests from within the same SSH session (or at least on the same remote server)? Or are you starting the tests from another machine and wanting to connect to that remote server?

If the latter, you could try starting the server with the hub role:

selenium-standalone start -- -role hub

That will output the hostname/port that nodes are expected to connect with.

stephenash avatar Jan 06 '16 01:01 stephenash

@stephenash maybe I misunderstand the way selenium sever works, but what I want is to start the selenium server from a remote machine as a background process, then have the tests run on the host machine at a later time.

When I tried running it with the hub role as suggested, I get this error:

ERROR: Error forwarding the new session Empty pool of VM for setup Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@58bd507e, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, version=, platform=ANY, requestOrigins={name=webdriverio, version=3.4.0, url=http://webdriver.io}}]

tnguyen14 avatar Jan 06 '16 02:01 tnguyen14

I think I missed the fact that I need to run at least a node and register that with the hub as well.

tnguyen14 avatar Feb 22 '16 19:02 tnguyen14

Thanks for getting back here with your workaround

vvo avatar Feb 23 '16 09:02 vvo