Safari Webdriver Error

592 views
Skip to first unread message

ttcconnor

unread,
Jul 11, 2012, 2:30:24 PM7/11/12
to seleniu...@googlegroups.com
I currently am running a test using Eclipse and TestNG and have the FireFox and Chrome webdriver installed. I am looking to run this test on Safari using the webdriver. I downloaded an Apple Safari certificate and set up the extension builder. When I run the test I get the following error:

FAILED: spawnSafari
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.4', java.version: '1.6.0_33'
Driver info: driver.version: SafariDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:467)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:155)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:107)
    at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:40)
    at safari.safari.spawnSafari(safari.java:10)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:702)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
    at org.testng.TestNG.run(TestNG.java:1030)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: java.lang.IllegalStateException: Executor has not been started yet
    at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
    at org.openqa.selenium.safari.SafariDriverCommandExecutor.execute(SafariDriverCommandExecutor.java:123)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:446)
    ... 28 more


Does anyone know why this problem is occurring if the Safari Driver was installed successfully? Is anyone currently running the Safari webdriver successfully?

Krishnan Mahadevan

unread,
Jul 11, 2012, 7:28:19 PM7/11/12
to seleniu...@googlegroups.com
This is most likely because the Extension was not installed properly. 

It refers to 2.21.0 and talks about using a pre-built extension that Luke created (you can replace that part with building the extension). 

Hope that helps. 
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/v3fHi5UnjAcJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.


--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
Message has been deleted

ttcconnor

unread,
Jul 12, 2012, 10:41:03 AM7/12/12
to seleniu...@googlegroups.com
I came across that website you posted and that is how I installed the extension. All of those steps I have done, except for the last, which the test runs successfully. I have opened the Extension builder and it says it is installed correctly and is linked to a certificate. I eventually want to run these tests remotely on Jenkins. Is the Safari driver made to do this kind of testing at this point in time?
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

Krishnan Mahadevan

unread,
Jul 12, 2012, 10:43:30 AM7/12/12
to seleniu...@googlegroups.com
Oh btw, are you running on Safari 5.1 or above ?


The SafariDriver requires Safari 5.1+

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/iWT7Bgy4gG0J.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

ttcconnor

unread,
Jul 12, 2012, 10:48:30 AM7/12/12
to seleniu...@googlegroups.com
I am running Safari 5.6.1

Krishnan Mahadevan

unread,
Jul 12, 2012, 10:51:12 AM7/12/12
to seleniu...@googlegroups.com
Ah! ok.. I am now running out of ideas to be honest :(

Hope someone else in the forum can help you out...


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/G89EG8bHSIUJ.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

ttcconnor

unread,
Jul 12, 2012, 10:55:48 AM7/12/12
to seleniu...@googlegroups.com
I'm running out as well! Thank you for your help, I appreciate the effort.


Oscar Rieken

unread,
Jul 12, 2012, 11:03:30 AM7/12/12
to seleniu...@googlegroups.com
I would suggest starting from scratch and rebuilding the extension and installing it with a new certificate 

I have installed this 8 times and not had one problem perhaps it could be with permissions of the machine you are trying to install it on?

On Thu, Jul 12, 2012 at 10:55 AM, ttcconnor <crissy...@gmail.com> wrote:
I'm running out as well! Thank you for your help, I appreciate the effort.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/wcjKyK-VwjEJ.

ttcconnor

unread,
Jul 12, 2012, 11:58:20 AM7/12/12
to seleniu...@googlegroups.com
Did you run your tests using java by any chance?


On Thursday, July 12, 2012 11:03:30 AM UTC-4, Oscar.Rieken wrote:
I would suggest starting from scratch and rebuilding the extension and installing it with a new certificate 

I have installed this 8 times and not had one problem perhaps it could be with permissions of the machine you are trying to install it on?

On Thu, Jul 12, 2012 at 10:55 AM, ttcconnor wrote:
I'm running out as well! Thank you for your help, I appreciate the effort.



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/wcjKyK-VwjEJ.

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Oscar Rieken

unread,
Jul 12, 2012, 11:59:23 AM7/12/12
to seleniu...@googlegroups.com
no sorry I am using ruby and 2.24.0 also works with 2.22.2

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_HTlUa8A3NUJ.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages