Last active
September 8, 2020 16:00
-
-
Save ShamaUgale/299f79a81a4b7a2aef42057479d2abc9 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.chrome.ChromeDriver; | |
import org.openqa.selenium.chrome.ChromeOptions; | |
public class ChromeDriverExample { | |
final static String PROJECT_PATH = System.getProperty("user.dir"); | |
public static void main(String[] args) throws IOException { | |
System.setProperty("webdriver.chrome.driver", PROJECT_PATH+ "/src/main/resources/chromedriver"); | |
ChromeOptions options = new ChromeOptions(); | |
options.setAcceptInsecureCerts(true); | |
ChromeDriver driver = new ChromeDriver(options); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment