java -jar selenium/selenium-server-1.0.1/selenium-server.jar -
userExtensions selenium/web/selenium-core/core/scripts/user-
extensions.js -multiwindow -htmlSuite "*safari" "http://
mywebsitename.net" "test\selenium\Login_Suite.html" "test\report
\selenium_results.html" -timeout 30
And I get this output:
17:35:48.406 INFO - Java: Sun Microsystems Inc. 14.3-b01
17:35:48.406 INFO - OS: Windows 2003 5.2 x86
17:35:48.406 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
17:35:48.531 INFO - Version Jetty/5.1.x
17:35:48.531 INFO - Started HttpContext[/selenium-server/driver,/
selenium-server/driver]
17:35:48.531 INFO - Started HttpContext[/selenium-server,/selenium-
server]
17:35:48.546 INFO - Started HttpContext[/,/]
17:35:48.546 INFO - Started SocketListener on 0.0.0.0:4444
17:35:48.546 INFO - Started org.mortbay.jetty.Server@ef22f8
17:35:48.828 INFO - Launching Safari ...
17:35:50.765 INFO - Checking Resource aliases
17:35:50.781 INFO - Checking Resource aliases
17:35:50.781 WARN - POST /selenium-server/driver/?
seleniumStart=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_11320&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1266014150619&sequenceNumber=0
HTTP/1.1
java.lang.NullPointerException: sessionId should not be null; has this
session been started yet?
at
org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:
214)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleBrowserResponse(SeleniumDriverResourceHandler.java:
159)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:
127)
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)
[...nearly identical warning repeats many times...snipped for
brevity...]
17:36:19.203 WARN - POST /selenium-server/driver/?
seleniumStart=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_11320&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1266014179187&sequenceNumber=14
HTTP/1.1
java.lang.NullPointerException: sessionId should not be null; has this
session been started yet?
at
org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:
214)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleBrowserResponse(SeleniumDriverResourceHandler.java:
159)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:
127)
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)
17:36:19.906 INFO - Killing Safari...
HTML suite exception seen:
org.openqa.selenium.server.SeleniumCommandTimedOutException
at
org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:
138)
at
org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:
174)
at
org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:
524)
at
org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:
232)
at
org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:
188)
17:36:20.031 INFO - Shutting down...
The test runs fine if I use *firefox or *iexplore instead. This is on
a Windows Server 2003 machine.
If it helps, this is a fairly fresh Safari installation. I turned off
pop-up blocking, and added the Safari folder (C:\Program Files\Safari)
to the system path.
I saw some previous posts addressing this problem, but since popup
blocking is off and it's still happening, it must be something else
going wrong. Thoughts?