Quantcast
Channel: Chrome won't quit after assertion error occurs - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Chrome 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>