I want to control whether my WebDriver quit but I can\'t find a method for that. (It seems that in Java there\'s a way to do it)
WebDriver
from selenium impor
I ran into the same problem and tried returning the title - this worked for me using chromedriver...
from selenium.common.exceptions import WebDriverException try: driver.title print(True) except WebDriverException: print(False)