forked from Zakaria/ZenProject
fix: 17
This commit is contained in:
@@ -49,16 +49,16 @@ public class Initialization {
|
||||
extent.setSystemInfo("Tester ID: ", "Sami");
|
||||
|
||||
// conditioning our WebDriver with an if statement
|
||||
String browsername = prop.getProperty("browserC");
|
||||
String browsername = prop.getProperty("browserF");
|
||||
|
||||
// launching FireFox
|
||||
if (browsername.equalsIgnoreCase("firefox")) {
|
||||
// System.setProperty("web-driver.gecko.driver","user.dir" +
|
||||
// "/drivers/geckodriver");
|
||||
// driver = new FirefoxDriver();
|
||||
// FirefoxOptions options = new FirefoxOptions();
|
||||
// options.addArguments("--headless");
|
||||
// driver = new FirefoxDriver(options);
|
||||
FirefoxOptions options = new FirefoxOptions();
|
||||
options.addArguments("--headless");
|
||||
driver = new FirefoxDriver(options);
|
||||
driver.get(prop.getProperty("url"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user