Skip to content

Instantly share code, notes, and snippets.

@ShamaUgale
Last active September 8, 2020 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShamaUgale/7ef2257901d3a58414bde8f744bcafff to your computer and use it in GitHub Desktop.
Save ShamaUgale/7ef2257901d3a58414bde8f744bcafff to your computer and use it in GitHub Desktop.
import org.openqa.selenium.safari.SafariDriver;
import org.openqa.selenium.safari.SafariOptions;
public class SafariDriverExample {
public static void main(String[] args) throws IOException {
SafariOptions safariOptions = new SafariOptions();
safariOptions.setAcceptInsecureCerts(true);
SafariDriver safariDriver = new SafariDriver(safariOptions);
safariDriver.get("https://www.google.com");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment