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
How about executing a driver command and checking for an exception:
import httplib, socket try: driver.quit() except httplib.CannotSendRequest: print "Driver did not terminate" except socket.error: print "Driver did not terminate" else: print "Driver terminated"