Safari 5 on Windows with Selenium IDE and standalone server?

61 views
Skip to first unread message

Nils Berge

unread,
Jun 2, 2014, 1:59:49 AM6/2/14
to seleniu...@googlegroups.com
Hi

I'm running tests in IE and Chrome through the Firefox IDE and WebDriver, which I launch like this -
java -jar selenium-server-standalone-2.42.1.jar -Dwebdriver.ie.driver=.\IEDriverServer32 2.42.0.exe
java -jar selenium-server-standalone-2.42.1.jar -Dwebdriver.chrome.driver=.\chromedriver.exe

Is there a way to run Safari (5.1.7) on Windows in the same way?

I've built and installed the Safari extension, with the location specified in the command line like this -
java -jar selenium-server-standalone-2.42.1.jar -Dwebdriver.safari.driver=.\SafariDriver.safariextz

But I receive this message -
15:49:10.323 WARN - Exception: Safari could not be found in the path!
Please add the directory containing ''Safari.exe'' to your PATH environment
variable, or explicitly specify a path to Safari like this:
*safari c:\blah\Safari.exe


Is there a way to get this working?
Thanks for any advice.

David

unread,
Jun 2, 2014, 1:21:25 PM6/2/14
to seleniu...@googlegroups.com
I never tried running tests on Safari through the IDE, only via WebDriver code in Java (and rarely Python) bindings.

As a start, you can try adding Safari folder (not the absolute path to the executable but it's parent folder) to your Windows system environment PATH variable. And see if that solves your problem.

Nils Berge

unread,
Jun 3, 2014, 4:03:28 AM6/3/14
to seleniu...@googlegroups.com
Thanks for your help David, that worked.
Reply all
Reply to author
Forward
0 new messages