selenium webdriver exit methods python code example Example: close selenium webdriver python driver.close()