ZenProject/src/test/java/zacksolutions/HomePageTest.java
dadgam3er e8968b6243
Some checks failed
jenkins/ZenProject/pipeline/head There was a failure building this commit
fix: 14
2024-09-30 22:33:07 -04:00

38 lines
789 B
Java

package zacksolutions;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import zacksolutions.base.Initialization;
import zacksolutions.pages.HomePage;
public class HomePageTest extends Initialization {
HomePage homePage;
public HomePageTest() {
super();
}
@BeforeTest
public void setUp() {
BrowserInit();
homePage = new HomePage();
}
@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");
}
@AfterTest
public void tearDown() {
driver.close();
}
}