Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Trillian
Active particpant
Active particpant
Posts : 14
Join date : 2012-03-30

Could not start Selenium session: Connection timed out: connect Empty Could not start Selenium session: Connection timed out: connect

Fri Mar 30, 2012 3:48 pm
I'm starting Selenium server on remote machine with
Code:
java -jar selenium-server-standalone-2.20.0.jar
and it's started successfully, but when I try to connect to it I get error:
Could not start Selenium session: Connection timed out: connect

I belive the problem might be that server is started with localhost IP so I wanted to set it to fixed IP with
Code:
java -jar selenium-server-standalone-2.20.0.jar -host 10.25.10.177 -port 4444
but in server log while starting it still says:
RemoteWebDriver instances should connect to: ...127.0.0.1:4444/wd/hub
...
Started SocketListener on 0.0.0.0:4444


Can anyone help?
avatar
Trillian
Active particpant
Active particpant
Posts : 14
Join date : 2012-03-30

Could not start Selenium session: Connection timed out: connect Empty Re: Could not start Selenium session: Connection timed out: connect

Wed Apr 04, 2012 7:37 pm
Ok since I couldn't resolve this, I switched from RC to WebDriver. Since I'm really new in Selenium, I would appreciate any help.
I get similar error now:
com.example.tests.WD.testWD(): Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

RemoteWebDriver call (JUnit class):
Code:
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setBrowserName("firefox");
WebDriver driver = new RemoteWebDriver(new URL("http...10.28.10.55:4444/wd/hub"), capability);

Server log:
Code:
>java -jar selenium-server-standalone-2.20.0.jar -hub http...10.25.10.177:4444/grid/register -userExtensions D:\smartgwt-3.0\selenium\user-extensions.js -host 10.25.10.177

04.04.2012. 14:29:02 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
0 [main] INFO org.openqa.selenium.server.SeleniumServer - Java: Sun Microsystems Inc. 14.2-b01
0 [main] INFO org.openqa.selenium.server.SeleniumServer - OS: Windows 7 6.1 x86
9 [main] INFO org.openqa.selenium.server.SeleniumServer - v2.20.0, with Core v2.20.0. Built from revision 16008
124 [main] INFO org.openqa.selenium.server.SeleniumServer - RemoteWebDriver instances should connect to: http...127.0.0.1:4444/wd/hub
129 [main] INFO org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x
132 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
135 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/selenium-server,/selenium-server]
138 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/,/]
185 [main] INFO org.openqa.jetty.util.Container - Started org.openqa.jetty.jetty.servlet.ServletHandler@5d173
186 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/wd,/wd]
192 [main] INFO org.openqa.jetty.http.SocketListener - Started SocketListener on 0.0.0.0:4444
194 [main] INFO org.openqa.jetty.util.Container - Started org.openqa.jetty.jetty.Server@14a9972

As you can see, server is again started with local host IP address, instead of network IP. Is this the reason for the error, or something else? Why command
java -jar selenium-server-standalone-2.20.0.jar -host 10.25.10.177
doesn't start server with defined host IP?

Thank you in advance!
Back to top
Permissions in this forum:
You cannot reply to topics in this forum