Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of a class without a Base Test approach
public class FirstTest {
private static WebDriver driver;
@BeforeAll
static void webdrivermanagerSetup() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.get("http://eliasnogueira.com");
}
@AfterAll
static void quitBrowser() {
driver.quit();
}
@Test
void firstTest() {
// the test goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.