Answers for "python selenium timeoutexception"

1

timeout exception in selenium python

from selenium import webdriver
from selenium.common.exceptions import TimeoutException

Driver = webdriver.Firefox()
try:
    Driver.set_page_load_timeout(1)
    Driver.get("http://www.engadget.com")
except TimeoutException as ex:
    isrunning = 0
    print("Exception has been thrown. " + str(ex))
    Driver.close()
Posted by: Guest on April-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language