Unable to use IE to run tests

8 views
Skip to first unread message

Nathan

unread,
Jun 11, 2008, 7:08:50 AM6/11/08
to selenium-users...@googlegroups.com
I currently have selenium rc beta-1 installed and have been happlily using it with FF without any issues.

I have come to run my tests in IE7, it ran up once an assert.IsTrue returned false and since then I am unable to use IE with selenium. I have tried running the server in interactive mode and using the command from the tutorial ( cmd=*getNewBrowserSession*&1=**iexplore*&2=*http://www.google.com* ) selenium still errors.

The error I get from running RC in code (c#) is 500 Internal Server Error, I also get this when running interactively but the server also reports following

java.lang.StringIndexOutOfBoundsException: String index out of range: -1\\ at java.lang.String.substring(Unknown Source)\\ at org.openqa.selenium.server.browserlaunchers.WindowsUtils$RegKeyValue.<init>(WindowsUtils.java:622)\\ at org.openqa.selenium.server.browserlaunchers.WindowsUtils.deleteRegistryValue(WindowsUtils.java:577)\\ at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.handleEvilPopupMgrBackup(WindowsProxyManager.java:106)\\ at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.init(WindowsProxyManager.java:81)\\ at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.<init>(WindowsProxyManager.java:65)\\ at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.<init>(InternetExplorerCustomProxyLauncher.java:48)\\ at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.<init>(InternetExplorerCustomProxyLauncher.java:41)\\ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\\ at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)\\ at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)\\ at java.lang.reflect.Constructor.newInstance(Unknown Source)\\ at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:124)\\ at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:81)\\ at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:307)\\ at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:113)\\ at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:78)\\ at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:653)\\ at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:410)\\ at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:388)\\ at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:135)\\ 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)

Here is all the server logged up to the error above:

11:47:11.700 INFO - Java: Sun Microsystems Inc. 10.0-b19\\ 11:47:11.700 INFO - OS: Windows XP 5.1 x86\\ 11:47:11.700 INFO - v1.0-beta-1 [2201], with Core v1.0-beta-1 [1994]\\ 11:47:11.762 INFO - Version Jetty/5.1.x\\ 11:47:11.778 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]\\ 11:47:11.778 INFO - Started HttpContext[/selenium-server,/selenium-server]\\ 11:47:11.778 INFO - Started HttpContext[/,/]\\ 11:47:11.794 INFO - Started SocketListener on 0.0.0.0:4444\\ 11:47:11.794 INFO - Started org.mortbay.jetty.Server@1bf73fa\\ Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)\\ cmd=getNewBrowserSession&1=*iexplore&2=http://www.google.com\\ 11:48:56.760 INFO - ---> Requesting http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*iexplore&2=http://www.google.com\\ 11:48:56.822 INFO - Checking Resource aliases\\ 11:48:56.822 INFO - Command request: getNewBrowserSession[*iexplore, http://www.google.com] on session null\\ 11:48:56.822 INFO - creating new remote session\\ 11:48:57.010 WARN - GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*iexplore&2=http://www.google.com HTTP/1.1

Can anybodyhelp?

Reply all
Reply to author
Forward
0 new messages