fix: 23 - RemoteWebDriver

This commit is contained in:
2024-10-02 19:14:32 -04:00
parent 6add05fc69
commit f146baa692
5 changed files with 95 additions and 48 deletions
@@ -1,8 +1,8 @@
package zacksolutions;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import zacksolutions.base.Initialization;
import zacksolutions.pages.HomePage;
@@ -17,19 +17,17 @@ public class HomePageTest extends Initialization {
super();
}
@Parameters("browser")
@BeforeTest
public void setUp() {
BrowserInit();
public void setUp(String browser) {
BrowserInit(browser);
homePage = new HomePage();
}
@Test
public void TextTest() throws InterruptedException, IOException {
System.out.println(driver.getTitle());
HomePage hp = new HomePage();
hp.insertText();
hp.textConfirmation();
// Assert.assertEquals(hp.textConfirmation(), "4 8 15 16 23 42");
}
@AfterTest