Hello there
I'm getting the same error than selenium_newbie
here's the full stacktrace :
12:08:56.466 ERROR - Failed to start new browser session, shutdown
browser and clear all session data
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(Unknown Source)
at
org.openqa.selenium.server.browserlaunchers.ResourceExtractor.extractResourcePath
(ResourceExtractor.java:46)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.extractProfileFromJar
(FirefoxChromeLauncher.java:144)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.makeCustomProfile
(FirefoxChromeLauncher.java:181)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch
(FirefoxChromeLauncher.java:82)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession
(FirefoxChromeLauncher.java:350)
at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession
(BrowserSessionFactory.java:357)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
(BrowserSessionFactory.java:122)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
(BrowserSessionFactory.java:84)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession
(SeleniumDriverResourceHandler.java:699)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand
(SeleniumDriverResourceHandler.java:393)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest
(SeleniumDriverResourceHandler.java:364)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle
(SeleniumDriverResourceHandler.java:125)
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:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:
986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
12:08:56.528 INFO - Got result: Failed to start new browser session:
Error while launching browser on session null
The annoying thing is that when I launch the test case directly with
"the launch as JUnit test" in Eclipse, I get no error. Same when I
launch it whithin a main method in the test class.
The problem appears to happen when I call the setUp method from
outside the test class.
Any idea?
Thanks in advance,
Robin