Last active
August 23, 2020 17:11
-
-
Save eliasnogueira/f7985f330ea52a52046ee016ed6ad777 to your computer and use it in GitHub Desktop.
Base test class example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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