Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of a BaseTest class using the browser factory approach
public class BaseWeb {
protected WebDriver driver;
public void preCondition() {
String browserToUse = "chrome";
driver = new DriverFactory().createInstance(browserToUse);
public void postCondition() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment