I have a bit of a complicated selenium script but it contains an error response (I dont want to) handle because it will ruin another selenium command in the script, long story short I want to define
driver. close()
at the beginning of the script and call it in 2 minutes REGARDLESS.
def mytimer():
time.sleep(120)
driver.close()
mytimer()
// Lots of selenium and webdriver stuff that will finish in 2 minutes because above as called a function that sleeps for 2 minutes and then calls driver.close()