-
-
Save ShamaUgale/fb059d0883630e83c2c599dc1c7fb1b0 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.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxOptions; | |
public class FirefoxExample { | |
final static String PROJECT_PATH = System.getProperty("user.dir"); | |
public static void main(String[] args) throws IOException { | |
System.setProperty("webdriver.gecko.driver", PROJECT_PATH+ "/src/main/resources/geckodriver"); | |
FirefoxOptions options = new FirefoxOptions(); | |
options.setAcceptInsecureCerts(true); | |
FirefoxDriver driver = new FirefoxDriver(options); | |
driver.get("https://www.google.com"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment