package SeleniumLearn.com;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
public class WebsiteLoadTest {
public WebDriver driver;
@Test
public void WebPageLoadTest() {
long start = System.currentTimeMillis();
driver.get("http://www.seleniumlearn.com");
long finish = System.currentTimeMillis();
long totalTime = finish - start;
System.out.println("Total Time for page load - "+totalTime);
}
@BeforeTest
public void beforeTest() {
driver= new FirefoxDriver();
}
@AfterTest
public void afterTest() {
driver.quit();
}
}