Dec 7, 2020, 2:07:01 PM12/7/20
to Geb User Mailing List
I'm using Spock as my testing framework. Everything works fine if I comment out all but one row of my where table, but if I try to run more than one test in sequence, the second one fails. Initially, it looked like the browser session was staying open, so I added a cleanup: block with browser.quit(), but now the second run fails immediately saying "Session ID is null. Using WebDriver after calling quit()?". I've also tried clearing cookies, but the user is still logged in. How can I properly close the browser or at least the window between tests so I know that I'll start from a fresh slate each test?