Firfox: launch browser

9 views
Skip to first unread message

klaus

unread,
Mar 28, 2009, 5:45:48 AM3/28/09
to selenium-users...@googlegroups.com
Hi all,

\\ i am trying to run selenium with the following java code.

\\ public class GoogleTest extends TestCase {\\     private Selenium browser;\\     public void setUp() {\\         browser = new DefaultSelenium("localhost",\\             4444, "*chrome", "http://www.google.com");\\         browser.start();\\     }\\    \\     public void testGoogle() {\\         browser.open("http://www.google.com/webhp?hl=en");\\         browser.type("q", "hello world\r\n");\\         browser.keyPress("q", "13");       \\         browser.waitForPageToLoad("5000");\\         assertEquals("hello world - Google Search", browser.getTitle());\\     }\\    \\     public void tearDown() {\\         browser.stop();\\     }\\ }

\\ When using this on a XP machine everything works as expected. However, if i use this on a Vista machine things get messy.

When i run this code selenium starts the selenium control browser instance but NOT the actual browser testing instance.\\ Here is the debug information from selenium server. What am i doing wrong on this machine?

thanks in advance,
Klaus

Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 304\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.431 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/xpath/util.js HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: */*\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.431 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.431 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.431 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.431 DEBUG - PATH=/core/xpath/util.js RESOURCE=/core/xpath/util.js\\ 10:35:19.447 DEBUG - Looking for /core/xpath/util.js\\ 10:35:19.447 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.447 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 14795\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.447 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/xpath/xmltoken.js HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: */*\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.447 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.447 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.447 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.447 DEBUG - PATH=/core/xpath/xmltoken.js RESOURCE=/core/xpath/xmltoken.\\ js\\ 10:35:19.462 DEBUG - Looking for /core/xpath/xmltoken.js\\ 10:35:19.462 DEBUG - got condition? : false\\ 10:35:19.462 DEBUG - waiting for window 'null' local frame 'null' for 1797 more\\ secs\\ 10:35:19.462 DEBUG - waiting for condition for 1000 more ms\\ 10:35:19.462 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.462 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/xpath/dom.js HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: */*\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.462 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 7809\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.478 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.478 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.478 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.478 DEBUG - PATH=/core/xpath/dom.js RESOURCE=/core/xpath/dom.js\\ 10:35:19.478 DEBUG - Looking for /core/xpath/dom.js\\ 10:35:19.478 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.478 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 15265\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.493 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/xpath/xpath.js HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: */*\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.493 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.493 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.493 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.493 DEBUG - PATH=/core/xpath/xpath.js RESOURCE=/core/xpath/xpath.js\\ 10:35:19.493 DEBUG - Looking for /core/xpath/xpath.js\\ 10:35:19.509 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/scripts/user-extensions.js HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: */*\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.509 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.509 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.509 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.509 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.509 DEBUG - PATH=/core/scripts/user-extensions.js RESOURCE=/core/script\\ s/user-extensions.js\\ 10:35:19.509 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 69535\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.509 DEBUG - Looking for /core/scripts/user-extensions.js\\ 10:35:19.509 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.525 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: application/x-javascript\\ Content-Length: 112\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:19.571 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/Blank.html HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive

\\ 10:35:19.571 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:19.571 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:19.587 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.587 DEBUG - PATH=/core/Blank.html RESOURCE=/core/Blank.html\\ 10:35:19.587 DEBUG - Looking for /core/Blank.html\\ 10:35:19.587 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:19.587 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:19 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: text/html\\ Content-Length: 141\\ Last-Modified: Sun, 28 Mar 2010 09:35:19 GMT\\ Accept-Ranges: bytes

\\ 10:35:20.476 DEBUG - got condition? : false\\ 10:35:20.476 DEBUG - waiting for window 'null' local frame 'null' for 1796 more\\ secs\\ 10:35:20.476 DEBUG - waiting for condition for 1000 more ms\\ 10:35:21.490 DEBUG - got condition? : false\\ 10:35:21.490 DEBUG - waiting for window 'null' local frame 'null' for 1795 more\\ secs\\ 10:35:21.490 DEBUG - waiting for condition for 1000 more ms\\ 10:35:21.568 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ GET /selenium-server/core/Blank.html HTTP/1.1\\ Host: localhost:4444\\ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7) Gecko/20090\\ 21910 Firefox/3.0.7\\ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\ Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\\ Accept-Encoding: gzip,deflate\\ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\\ keep-alive: 300\\ Connection: keep-alive\\ If-Modified-Since: Sun, 28 Mar 2010 09:35:19 GMT

\\ 10:35:21.568 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0\\ 10:35:21.568 DEBUG - Handler org.mortbay.http.handler.SecurityHandler in HttpCon\\ text[/selenium-server,/selenium-server]\\ 10:35:21.568 DEBUG - Handler org.openqa.selenium.server.StaticContentHandler in\\ HttpContext[/selenium-server,/selenium-server]\\ 10:35:21.568 DEBUG - PATH=/core/Blank.html RESOURCE=/core/Blank.html\\ 10:35:21.568 DEBUG - Looking for /core/Blank.html\\ 10:35:21.568 DEBUG - Handled by org.openqa.selenium.server.StaticContentHandler\\ in HttpContext[/selenium-server,/selenium-server]\\ 10:35:21.584 DEBUG - RESPONSE:\\ HTTP/1.1 200 OK\\ Date: Sat, 28 Mar 2009 09:35:21 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Cache-Control: no-cache\\ Pragma: no-cache\\ Expires: Thu, 01 Jan 1970 00:00:00 GMT\\ Content-Type: text/html\\ Content-Length: 141\\ Last-Modified: Sun, 28 Mar 2010 09:35:21 GMT\\ Accept-Ranges: bytes

\\ 10:35:22.504 DEBUG - got condition? : false\\ 10:35:22.504 DEBUG - waiting for window 'null' local frame 'null' for 1794 more\\ secs\\ 10:35:22.504 DEBUG - waiting for condition for 1000 more ms\\ 10:35:23.518 DEBUG - got condition? : false\\ 10:35:23.518 DEBUG - waiting for window 'null' local frame 'null' for 1793 more\\ secs\\ 10:35:23.518 DEBUG - waiting for condition for 1000 more ms\\ 10:35:24.532 DEBUG - got condition? : false\\ 10:35:24.532 DEBUG - waiting for window 'null' local frame 'null' for 1792 more\\ secs\\ 10:35:24.532 DEBUG - waiting for condition for 1000 more ms\\ 10:35:25.546 DEBUG - got condition? : false\\ 10:35:25.546 DEBUG - waiting for window 'null' local frame 'null' for 1791 more\\ secs\\ 10:35:25.546 DEBUG - waiting for condition for 1000 more ms\\ 10:35:26.560 DEBUG - got condition? : false\\ 10:35:26.560 DEBUG - waiting for window 'null' local frame 'null' for 1790 more\\ secs\\ 10:35:26.560 DEBUG - waiting for condition for 1000 more ms\\ 10:35:27.574 DEBUG - got condition? : false\\ 10:35:27.574 DEBUG - waiting for window 'null' local frame 'null' for 1789 more\\ secs\\ 10:35:27.574 DEBUG - waiting for condition for 1000 more ms\\ 10:35:28.588 DEBUG - got condition? : false\\ 10:35:28.588 DEBUG - waiting for window 'null' local frame 'null' for 1788 more\\ secs\\ 10:35:28.588 DEBUG - waiting for condition for 1000 more ms



10:35:22.504 DEBUG - got condition? : false\\ 10:35:22.504 DEBUG - waiting for window 'null' local frame 'null' for 1794 more\\ secs\\ 10:35:22.504 DEBUG - waiting for condition for 1000 more ms\\ 10:35:23.518 DEBUG - got condition? : false\\ 10:35:23.518 DEBUG - waiting for window 'null' local frame 'null' for 1793 more\\ secs\\ 10:35:23.518 DEBUG - waiting for condition for 1000 more ms\\ 10:35:24.532 DEBUG - got condition? : false\\ 10:35:24.532 DEBUG - waiting for window 'null' local frame 'null' for 1792 more\\ secs\\ 10:35:24.532 DEBUG - waiting for condition for 1000 more ms\\ 10:35:25.546 DEBUG - got condition? : false\\ 10:35:25.546 DEBUG - waiting for window 'null' local frame 'null' for 1791 more\\ secs\\ 10:35:25.546 DEBUG - waiting for condition for 1000 more ms\\ 10:35:26.560 DEBUG - got condition? : false\\ 10:35:26.560 DEBUG - waiting for window 'null' local frame 'null' for 1790 more\\ secs\\ 10:35:26.560 DEBUG - waiting for condition for 1000 more ms\\ 10:35:27.574 DEBUG - got condition? : false\\ 10:35:27.574 DEBUG - waiting for window 'null' local frame 'null' for 1789 more\\ secs\\ 10:35:27.574 DEBUG - waiting for condition for 1000 more ms\\ 10:35:28.588 DEBUG - got condition? : false\\ 10:35:28.588 DEBUG - waiting for window 'null' local frame 'null' for 1788 more\\ secs\\ 10:35:28.588 DEBUG - waiting for condition for 1000 more ms\\ 10:35:29.602 DEBUG - got condition? : false\\ 10:35:33.299 DEBUG - new HttpConnection: Socket[addr=/0:0{emoticon:__jive_emoticon_name=laugh}{emoticon:__jive_emoticon_name=laugh}{emoticon:__jive_emoticon_name=laugh}{emoticon:__jive_emoticon_name=laugh}{emoticon:__jive_emoticon_name=laugh}:1,port=49188\\ ,localport=4444]\\ 10:35:54.890 DEBUG - waiting for window 'null' local frame 'null' for 1787 more\\ secs\\ 10:35:54.890 DEBUG - waiting for condition for 1000 more ms\\ 10:35:54.890 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:\\ CONNECT s1.4publishers.com:443 HTTP/1.0\\ User-Agent: EasyBits Download Service Version 1.0\\ Host: s1.4publishers.com:443\\ Content-Length: 0\\ Proxy-Connection: keep-alive\\ Pragma: no-cache

\\ 10:35:54.890 DEBUG - Try HttpContext[/,/],0\\ 10:35:54.890 DEBUG - Handler org.openqa.selenium.server.ProxyHandler in HttpCont\\ ext[/,/]\\ 10:35:54.890 DEBUG - CONNECT: s1.4publishers.com:443\\ 10:35:54.937 DEBUG - error during handleConnect\\ java.net.UnknownHostException: s1.4publishers.com: s1.4publishers.com\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.InetAddress.getAllByName0(InetAddress.java:1145)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.InetAddress.getAllByName(InetAddress.java:1072)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.InetAddress.getAllByName(InetAddress.java:1008)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.InetAddress.getByName(InetAddress.java:958)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.util.InetAddrPort.<init>(InetAddrPort.java:88)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.ProxyHandler.handleConnect(ProxyHandler.ja\\ va:542)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.ProxyHandler.handle(ProxyHandler.java:241)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpServer.service(HttpServer.java:909)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:\\ 244)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)\\ 10:35:54.937 DEBUG - Handled by org.openqa.selenium.server.ProxyHandler in HttpC\\ ontext[/,/]\\ 10:35:54.937 DEBUG - RESPONSE:\\ HTTP/1.1 500 java%2Enet%2EUnknownHostException%3A+s1%2E4publishers%2Ecom%3A+s1%2\\ E4publishers%2Ecom\\ Date: Sat, 28 Mar 2009 09:35:54 GMT\\ Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.5.0_17\\ Connection: keep-alive\\ Content-Type: text/html\\ Content-Length: 1354

\\ 10:35:55.904 DEBUG - got condition? : false\\ 10:35:55.904 DEBUG - waiting for window 'null' local frame 'null' for 1786 more\\ secs\\ 10:35:55.904 DEBUG - waiting for condition for 1000 more ms\\ 10:35:56.918 DEBUG - got condition? : false\\ 10:35:56.918 DEBUG - waiting for window 'null' local frame 'null' for 1785 more\\ secs\\ 10:35:56.918 DEBUG - waiting for condition for 1000 more ms\\ 10:35:57.932 DEBUG - got condition? : false\\ 10:36:10.505 DEBUG - waiting for window 'null' local frame 'null' for 1784 more\\ secs\\ 10:36:10.505 DEBUG - waiting for condition for 1000 more ms\\ 10:36:11.519 DEBUG - got condition? : false\\ 10:36:11.519 DEBUG - waiting for window 'null' local frame 'null' for 1783 more\\ secs\\ 10:36:11.519 DEBUG - waiting for condition for 1000 more ms\\ 10:36:12.533 DEBUG - got condition? : false\\ 10:36:12.533 DEBUG - waiting for window 'null' local frame 'null' for 1782 more\\ secs\\ 10:36:12.533 DEBUG - waiting for condition for 1000 more ms\\ 10:36:13.547 DEBUG - got condition? : false\\ 10:36:13.547 DEBUG - waiting for window 'null' local frame 'null' for 1781 more\\ secs\\ 10:36:13.547 DEBUG - waiting for condition for 1000 more ms\\ 10:36:14.561 DEBUG - got condition? : false\\ 10:36:14.561 DEBUG - waiting for window 'null' local frame 'null' for 1780 more\\ secs\\ 10:36:14.561 DEBUG - waiting for condition for 1000 more ms\\ 10:36:15.575 DEBUG - got condition? : false\\ 10:36:15.575 DEBUG - waiting for window 'null' local frame 'null' for 1779 more\\ secs\\ 10:36:15.575 DEBUG - waiting for condition for 1000 more ms\\ 10:36:16.589 DEBUG - got condition? : false\\ 10:36:16.589 DEBUG - waiting for window 'null' local frame 'null' for 1778 more\\ secs\\ 10:36:16.589 DEBUG - waiting for condition for 1000 more ms\\ 10:36:17.603 DEBUG - got condition? : false\\ 10:36:17.603 DEBUG - waiting for window 'null' local frame 'null' for 1777 more\\ secs\\ 10:36:17.603 DEBUG - waiting for condition for 1000 more ms\\ 10:36:18.617 DEBUG - got condition? : false\\ 10:36:20.115 DEBUG - java.net.SocketTimeoutException: Read timed out\\ 10:36:22.112 DEBUG - java.net.SocketTimeoutException: Read timed out\\ 10:36:35.372 DEBUG - waiting for window 'null' local frame 'null' for 1776 more\\ secs\\ 10:36:35.372 DEBUG - waiting for condition for 1000 more ms\\ 10:36:36.386 DEBUG - got condition? : false\\ 10:36:36.386 DEBUG - waiting for window 'null' local frame 'null' for 1775 more\\ secs

klaus

unread,
Mar 28, 2009, 12:45:24 PM3/28/09
to selenium-users...@googlegroups.com
Hi again,

i attached the selenium source and debbuged the thing. I found the code which apparently does not return. (See callstack)
The conn.getResponseCode(); methode does NOT return which results in the code is not doing anything.

The Java Docs from the HttpURLConnection class do not help me to reason why this happens. This looks very strange to me.
I might look into this more tomorrow. You guys have any idea?

Another funny thing: Safari works as expected.

thanks,
Klaus

GoogleTest [JUnit]&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner at localhost:51548&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thread [main] (Suspended (breakpoint at line 144 in HttpCommandProcessor))&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.getResponseCode(HttpURLConnection) line: 144&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.getCommandResponseAsString(String) line: 164&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.executeCommandOnServlet(String) line: 104&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.doCommand(String, String[]) line: 86&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.getString(String, String[]) line: 262&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HttpCommandProcessor.start() line: 223&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DefaultSelenium.start() line: 81&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GoogleTest.setUp() line: 10&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GoogleTest(TestCase).runBare() line: 132&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestResult$1.protect() line: 110&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestResult.runProtected(Test, Protectable) line: 128&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestResult.run(TestCase) line: 113&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GoogleTest(TestCase).run(TestResult) line: 124&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestSuite.runTest(Test, TestResult) line: 232&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestSuite.run(TestResult) line: 227&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JUnit38ClassRunner.run(RunNotifier) line: 79&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JUnit4TestClassReference(JUnit4TestReference).run(TestExecution) line: 45&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TestExecution.run(ITestReference[]) line: 38&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RemoteTestRunner.runTests(String[], String, TestExecution) line: 460&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RemoteTestRunner.runTests(TestExecution) line: 673&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RemoteTestRunner.run() line: 386&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RemoteTestRunner.main(String[]) line: 196&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thread [ReaderThread] (Running)&nbsp;&nbsp;&nbsp; \\ &nbsp;&nbsp;&nbsp; C:\Program Files\Java\jre1.5.0_17\bin\javaw.exe (28.03.2009 17:35:28)&nbsp;&nbsp;

Reply all
Reply to author
Forward
0 new messages