Answer by RKelley for Chrome won't quit after assertion error occurs
Create a method that gets run after your test method which will quit the driver. This will close your driver after everything in your test method has run.@Afterpublic void teardown() { this.driver.quit()}
View ArticleAnswer by SevitomTheOgre for Chrome won't quit after assertion error occurs
You need to utilize some sort of error handling. An exception is being thrown from your assert and is not being handled, so your following quit is never called. Here is one example - Depending on your...
View ArticleChrome won't quit after assertion error occurs
I'm trying to get the browser to close when the test fails via assertion. It outputs the correct log info in the log, but the browser does not close.java.lang.AssertionError: Error: Title is 'Jordan |...
View Article
More Pages to Explore .....