Hi,
im new to selenium and wanted to give selenium-rc a try since it sounds very promising. Unfortunately i cant get it to run in either interactive mode nor with the sample ruby/python scripts.
by doing the *' cmd=getNewBrowserSession&1=*iexplore&2=
http://www.google.com'* cmd in interactive mode i get the following java exception:
---> Requesting
http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*iexplore&2=http://www.google.co
m
queryString = cmd=getNewBrowserSession&1=*iexplore&2=
http://www.google.com
05.04.2006 00:15:04 org.mortbay.http.HttpConnection exception
WARNUNG: GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*iexplore&2=
http://www.google.com HTTP/1.1
java.lang.RuntimeException: Output didn't look right: ! REG.EXE VERSION 3.0
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
AutoConfigURL REG_SZ file://C:/selenium-remote-control-0.7/server/customProfileDir/proxy.pac
at org.openqa.selenium.server.browserlaunchers.WindowsUtils.readStringRegistryValue(WindowsUtils.java:325)
at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.changeRegistrySettings(Intern
etExplorerCustomProxyLauncher.java:103)
at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.launch(InternetExplorerCustom
ProxyLauncher.java:68)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.j
ava:198)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:133)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.j
ava:119)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:93)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:4444/selenium-server/driver/?cmd=
getNewBrowserSession&1=*iexplore&2=
http://www.google.com
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URLConnection.getContent(Unknown Source)
at org.openqa.selenium.server.SeleniumServer$3.run(SeleniumServer.java:263)
at java.lang.Thread.run(Unknown Source)
and by running *selenium_example.rb* i get this exception:
queryString = cmd=getNewBrowserSession&1=%2Afirefox&2=http%3A%2F%
2Fwww.irian.at
Preparing Firefox profile...
05.04.2006 00:17:52 org.mortbay.http.HttpConnection exception
WARNUNG: GET /selenium-server/driver/?cmd=getNewBrowserSession&1=%2Afirefox&2=http%3A%2F%
2Fwww.irian.at HTTP/1.1
java.lang.RuntimeException: java.io.IOException: CreateProcess: firefox -profile C:\selenium-remote-control-0.7.1\server
\customProfileDir1144189071890 chrome://killff/content/kill.html error=2
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.
java:131)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.j
ava:198)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:133)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.j
ava:119)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:93)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: java.io.IOException: CreateProcess: firefox -profile C:\selenium-remote-control-0.7.1\server\customProfileDir
1144189071890 chrome://killff/content/kill.html error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.
java:119)
... 13 more
queryString = cmd=testComplete
Got result: ERROR: No launcher found for sessionId null
i running windows xp, selenium-rc 0.7.1
any ideas?
Christian