Issue 240 in robotframework-seleniumlibrary: The server_host argument does not work

6 views
Skip to first unread message

robotframework-...@googlecode.com

unread,
May 18, 2012, 8:03:18 AM5/18/12
to robotframework-se...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 240 by dietrich...@gmail.com: The server_host argument does not
work
http://code.google.com/p/robotframework-seleniumlibrary/issues/detail?id=240

SeleniumLibrary 2.9 does not connect to a remote Selenium 1 server_host, no
matter if I enter just a host name and pass the port separately, or if I
pass the host with port in a single URL like this:

timeout=45 | server_host=http://my.remote.host:4444
timeout=45 | server_host=my.remote.host | server_port=4444

If I open a tunnel to the remote host on port 4444 and remove the
server_host argument, the SeleniumLibrary connects to the remote host
through the tunnel. It uses localhost and that seems to work.

It appears as if the server_host were ignored.

Not sure if it makes a difference, but I am running from within RIDE 0.44
on Python 2.6.5


robotframework-...@googlecode.com

unread,
May 18, 2012, 8:07:49 AM5/18/12
to robotframework-se...@googlegroups.com

Comment #1 on issue 240 by dietrich...@gmail.com: The server_host argument
An additional observation:

If I pass server_host=http://my.remote.host:4444 anyway while the tunnel is
open, the remote server is connected properly.

If I then close the tunnel, the connection fails.

Again, it seems that server_host is ignored.

Same effect happens with version 2.8.

robotframework-...@googlecode.com

unread,
May 21, 2012, 3:30:57 AM5/21/12
to robotframework-se...@googlegroups.com

Comment #2 on issue 240 by dietrich...@gmail.com: The server_host argument
I forgot to mention connecting to the remote host without tunnel via telnet
as in

telnet my.remote.host 4444

gives me a connection and I see an incoming request in the selenium server
debug log.


robotframework-...@googlecode.com

unread,
May 21, 2012, 4:10:59 AM5/21/12
to robotframework-se...@googlegroups.com

Comment #3 on issue 240 by dietrich...@gmail.com: The server_host argument
A simple test in java connects, too:

String serverHost = "my.remote.host";
int serverPort = 4444;
String browserStartCommand = "*firefox";
String browserURL = "http://www.mydomain.com";
String url = "/index.html";

System.out.println(serverHost);
System.out.println(serverPort);
System.out.println(browserStartCommand);
System.out.println(browserURL);
System.out.println(url);

DefaultSelenium selenium = new DefaultSelenium(serverHost, serverPort,
browserStartCommand, browserURL);
selenium.start();
selenium.open(url);
selenium.waitForPageToLoad("30000");
selenium.isTextPresent("Mydomain");
selenium.close();
selenium.stop();

robotframework-...@googlecode.com

unread,
May 21, 2012, 4:30:43 AM5/21/12
to robotframework-se...@googlegroups.com

Comment #4 on issue 240 by dietrich...@gmail.com: The server_host argument
The issue is solved, I had a selenium import statement in the top-level
suite, but the effective import took place in a resource.

robotframework-...@googlecode.com

unread,
May 21, 2012, 6:41:05 AM5/21/12
to robotframework-se...@googlegroups.com
Updates:
Status: Invalid

Comment #5 on issue 240 by pekka.klarck: The server_host argument does not
work
http://code.google.com/p/robotframework-seleniumlibrary/issues/detail?id=240

Good you were able to solve the problem.

Reply all
Reply to author
Forward
0 new messages