Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira

eliasnogueira/BaseWeb.java

Last active Aug 23, 2020
Embed
What would you like to do?
Base test class example
public abstract class BaseWeb {
protected static WebDriver driver;
@BeforeAll
static void webdrivermanagerSetup() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.get("http://eliasnogueira.com");
}
@AfterAll
static void quitBrowser() {
driver.quit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment