Last active
September 8, 2020 16:50
-
-
Save ShamaUgale/a1bb74945909ad296f8932a4d3c6aefb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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