package seleniumTestNG;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
public class TestNG_D_Description {
WebDriver driver;
@Test (description= "Launches the SeleniumLear.Com Website" )
public void seleniumlearn() {
driver.get("http://www.seleniumlearn.com");
}
@BeforeTest
public void beforeTest() {
driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(9, TimeUnit.SECONDS);
driver.manage().window().maximize();
}
@AfterTest
public void afterTest() {
}
}
Comments