python selenium webdriver closes instantly code example Example: close selenium webdriver python driver.close()