Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Could not start Selenium session: Connection timed out: connect

View previous topic View next topic Go down

Could not start Selenium session: Connection timed out: connect

Post by Trillian on 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?

Trillian
Active particpant
Active particpant

Posts : 14
Join date : 2012-03-30

Back to top Go down

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

Post by Trillian on 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!

Trillian
Active particpant
Active particpant

Posts : 14
Join date : 2012-03-30

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum