I\'m getting the chrome didn\'t shut down correctly error message when I reopen a chrome browser in my selenium framework.
In the framework I\'m opening the browser
This solution is in Python and works 100% but you should be able to implement this in Java as well. I just call the close_windows
function every time I am finished using Selenium.
def close_windows():
windows = driver.window_handles
for w in windows:
driver.switch_to.window(w)
driver.close()
driver.quit()
close_windows()