fix: 14
Some checks failed
jenkins/ZenProject/pipeline/head There was a failure building this commit
Some checks failed
jenkins/ZenProject/pipeline/head There was a failure building this commit
This commit is contained in:
parent
8a5ab43be8
commit
e8968b6243
@ -49,16 +49,16 @@ public class Initialization {
|
||||
extent.setSystemInfo("Tester ID: ", "Sami");
|
||||
|
||||
// conditioning our WebDriver with an if statement
|
||||
String browsername = prop.getProperty("browserF");
|
||||
String browsername = prop.getProperty("browserC");
|
||||
|
||||
// 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"));
|
||||
}
|
||||
|
||||
@ -67,9 +67,9 @@ public class Initialization {
|
||||
// System.setProperty("web-driver.gecko.driver", "user.dir" +
|
||||
// "/drivers/chromedriver");
|
||||
// driver = new ChromeDriver();
|
||||
// ChromeOptions options = new ChromeOptions();
|
||||
// options.addArguments("--headless");
|
||||
// driver = new ChromeDriver(options);
|
||||
ChromeOptions options = new ChromeOptions();
|
||||
options.addArguments("--headless");
|
||||
driver = new ChromeDriver(options);
|
||||
driver.get(prop.getProperty("url"));
|
||||
}
|
||||
driver.manage().window().maximize();
|
||||
|
||||
@ -23,11 +23,11 @@ public class HomePageTest extends Initialization {
|
||||
|
||||
@Test
|
||||
public void TextTest() throws InterruptedException {
|
||||
System.out.println(driver.getTitle());
|
||||
// HomePage hp = new HomePage();
|
||||
// hp.insertText();
|
||||
// hp.textConfirmation();
|
||||
// Assert.assertEquals(hp.textConfirmation(), "4 8 15 16 23 42");
|
||||
// System.out.println(driver.getTitle());
|
||||
HomePage hp = new HomePage();
|
||||
hp.insertText();
|
||||
hp.textConfirmation();
|
||||
Assert.assertEquals(hp.textConfirmation(), "4 8 15 16 23 42");
|
||||
}
|
||||
|
||||
@AfterTest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user