What’s the procedure to pass the firefoxOptions
in JUnit.
Hello Dipen,
Yes, you can pass the firefoxOptions
in JUnit in this format:
public void SetUp() throws Throwable {
System.setProperty("webdriver.gecko.driver", "/usr/bin/geckodriver");
FirefoxBinary firefoxBinary = new FirefoxBinary();
firefoxBinary.addCommandLineOptions("--headless");
FirefoxProfile profile=new FirefoxProfile();
FirefoxOptions firefoxOptions = new FirefoxOptions();
firefoxOptions.setBinary(firefoxBinary);
firefoxOptions.setProfile(profile);
driver=new FirefoxDriver(firefoxOptions);
driver.get("https://webapps.tekstac.com/shippingDetails/");
}