package seleniumTestNG;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
public class TestNG_B_AlphabeticalOrder {
WebDriver driver;
@Test
public void facebook() {
driver.get("http://www.fb.com");
}
@Test
public void twitter() {
driver.get("http://www.twitter.com");
}
@Test
public void seleniumlearn() {
driver.get("http://www.seleniumlearn.com");
}
@Test
public void google() {
driver.get("http://www.google.com");
}
@Test
public void linkedin() {
driver.get("http://www.linkedin.com");
}
@BeforeTest
public void beforeTest() {
driver=new FirefoxDriver();;
driver.manage().timeouts().implicitlyWait(9, TimeUnit.SECONDS);
}
@AfterTest
public void afterTest() {
}
}
Comments