forked from Zakaria/ZenProject
fix: 23 - RemoteWebDriver
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user