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/a1bb74945909ad296f8932a4d3c6aefb to your computer and use it in GitHub Desktop.
Save ShamaUgale/a1bb74945909ad296f8932a4d3c6aefb to your computer and use it in GitHub Desktop.
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;
public class EdgeDriverExample {
final static String PROJECT_PATH = System.getProperty("user.dir");
public static void main(String[] args) throws IOException {
System.setProperty("webdriver.edge.driver", PROJECT_PATH+ "/src/main/resources/EdgeDriver.exe");
EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.setAcceptInsecureCerts(true);
EdgeDriver edgeDriver = new EdgeDriver(edgeOptions);
edgeDriver.get("https://www.google.com");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment