This commit is contained in:
2024-09-30 23:05:12 -04:00
parent 9777fa5e9a
commit 09c9801fc9
2 changed files with 10 additions and 10 deletions
@@ -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"));
}