Tx gim for the reply but I can't get it to work with FF3. No problem for IE.
This is how I use Selenium :
I start de selenium server
java -jar selenium-server.jar -port 4444\\ \\ +14:51:06.544 INFO - Java: Sun Microsystems Inc. 1.6.0_02-b06 \\ 14:51:06.544 INFO - OS: Windows XP 5.1 x86 \\ 14:51:06.544 INFO - v1.0-SNAPSHOT [1123], with Core v1.0-SNAPSHOT [2094] \\ 14:51:06.638 INFO - Version Jetty/5.1.x \\ 14:51:06.653 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] \\ 14:51:06.653 INFO - Started HttpContext[/selenium-server,/selenium-server] \\ 14:51:06.653 INFO - Started HttpContext[/,/] \\ 14:51:06.669 INFO - Started SocketListener on
0.0.0.0:4444 \\ 14:51:06.669 INFO - Started org.mortbay.jetty.Server@201f9+
I start the client (java/Junit)
+ \\ new DefaultSelenium("localhost", 4444, "*firefox3 C:\\Peter\\Program Files\\Mozilla Firefox\\firefox.exe", url)+
I start unit test and get the stacktrace :
+14:52:36.384 INFO - creating new remote session \\ 14:52:36.586 INFO - Allocated session a61e98ec96fb4744938808cb29fa6d71 for http: \\ //localhost, launching... \\ 14:52:36.649 INFO - Preparing Firefox profile... \\ 14:52:57.299 ERROR - Failed to start new browser session, shutdown browser an cl \\ ear all session data \\ java.lang.RuntimeException: *Timed out waiting for profile to be created!* \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai \\ tForFullProfileToBeCreated(FirefoxChromeLauncher.java:226) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop \\ ulateCustomProfileDirectory(FirefoxChromeLauncher.java:96) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau \\ nch(FirefoxChromeLauncher.java:73) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau \\ nchRemoteSession(FirefoxChromeLauncher.java:261) \\ at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi \\ on(BrowserSessionFactory.java:318) \\ ... \\ 14:52:57.299 INFO - Got result: Failed to start new browser session: Error while \\ launching browser on session null \\ 14:52:57.330 INFO - Command request: open[
http://localhost/controleurs/Login.fac \\ es, ] on session null \\ 14:52:57.330 ERROR - Exception running command \\ java.lang.NullPointerException: sessionId should not be null; has this session b \\ een started yet?+
Then I realised I was not using the driver-jar of the latest nightly build, So I changed
the classpath but this results in another stacktrace :
+java.lang.RuntimeException: Could not start Selenium session: Internal Server Error \\ at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:76) \\ at be.delijn.controleurs.presentatie.AbstractSeleniumTestCase.setUp(AbstractSeleniumTestCase.java:69) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)+
Any help is much appreciated.
Kind regards
Peter