package ru.stqa.trainings.testng.simple1.sample8;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class SeleniumClassFixture {
protected WebDriver driver;
@BeforeClass
public void setUp() {
System.out.println("Starting a browser");
driver = new FirefoxDriver();
}
@AfterClass
public void tearDown() {
System.out.println("Stopping the browser");
if (driver != null) {
driver.quit();
}
}
}