Hello everyone,
This looks like a bug, but I'm not sure if it's a known issue or maybe some config problem on my end.
I'm trying to run some tests with the Remote WebDriver on an Android device using the AndroidDriver(). The RemoteDriver is connected through Selenium Grid. When I start my tests and try to initialize the webdriver, I get the following error:
org.openqa.selenium.WebDriverException: 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
Command duration or timeout: 134 milliseconds
Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17'
System info:
os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_09'
Driver info: org.openqa.selenium.android.AndroidDriver
This is consistent with trying to use a SafariDriver().
I tried running these tests after installing Safari for windows, and sure enough, the tests started and ran with the Safari browser. Uninstalling Safari leads to the above error again.
The driver initialization looks like this:
dc = DesiredCapabilities.android();
dc.setBrowserName("android");
dc.setPlatform(Platform.ANDROID);
dc.setJavascriptEnabled(true);
dc.setCapability("takesScreenshot", true);
dc.setCapability("environment", "tablet");
driver = new AndroidDriver(new URL("http://" + host + ":4444/wd/hub"), dc);
Any insights here? I'm using the Android SDK with android-server-2.21.0, WebDriver for Java verison 2.32 and Java 1.7
Thanks!
Josh