VocalChilloutListen = driver.find_element_by_xpath("/html/body/div[3]/div[9]/div[2]/div/div/div[2]/div/section[2]/div/div[2]/div/ul/li[1]/div/span/span[1]")
VocalChilloutListen .click()Yukarıdaki kod tek başına çalışmasına karşın aşağıdaki timer'lı hali çalışmyıyor. Nerede hata yapıyorum ?
def PlayPause():
VocalChilloutListen = driver.find_element_by_xpath("/html/body/div[3]/div[9]/div[2]/div/div/div[2]/div/section[2]/div/div[2]/div/ul/li[1]/div/span/span[1]")
VocalChilloutListen.click()
t = Timer(5.0, PlayPause)
t.Start()En yukarıda import threading yazılı...
Konsolda herhangi bir hata vermiyor. Program bu kodu çalıştırmadan bitiyor... 5'er saniye bekliyorum, herhangi bir aksiyon yok...