We reached a new milestone few days ago. It was about 2 years ago that we cross 1 million page views. We crossed a new mile stone few days ago. seleniumtests.com crossed 2 million page views days ago. Though addition on a million page views in not spectacular in span on 2 years but probably an indicator of popularity of a private blog. Last but not the least, seleniumtests.com would not have reached this milestone with out all of you. A big thanks to all of you :-)
I asked on my previous post about what was wrong in instantiating driver on set up method? And here is the solution video on my YouTube channel (After 5 years of gap I finally added new video tutorial :)) The solution described on video tutorial uses following set up - public class BaseClassOnDemandDriverSetup { private WebDriver driver ; @BeforeMethod public void setupTest () { // Any other set up goes here } @AfterMethod public void teardown () { if ( driver != null ) { driver .quit() ; } } public WebDriver getDriver () { if ( driver == null ) { WebDriverManager. chromedriver ().setup() ; driver = new ChromeDriver() ; } return driver ; } }