Java Code Examples for org.openqa.selenium.remote.DesiredCapabilities.safari()

The following are Jave code examples for showing how to use safari() of the org.openqa.selenium.remote.DesiredCapabilities class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: SWET   File: BrowserDriver.java   Source Code and License Vote up 5 votes
private static DesiredCapabilities capabilitiesSafari() {
	DesiredCapabilities capabilities = DesiredCapabilities.safari();
	SafariOptions options = new SafariOptions();
	options.setUseCleanSession(true);
	capabilities.setCapability(SafariOptions.CAPABILITY, options);
	return capabilities;
}