public WebDriver loadDriver() throws Exception
{
DesiredCapabilities safariCapabilities = DesiredCapabilities.safari();
safariCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
if(isSupportedPlatform())
return new SafariDriver(safariCapabilities);
else
throw new Exception("Unrecognized Platform for Safari");
}
private boolean isSupportedPlatform()
{
Platform current = Platform.getCurrent();
return Platform.MAC.is(current) || Platform.WINDOWS.is(current);
}
Thanks,
Rana
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/80936301-b91e-4c81-8142-2a8ab57ed3f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.