Answers for "reload in selenium if timeout"

0

reload in selenium if timeout

retries = 1
while retries <= 5:
    try:
        quote = wait.until(EC.element_to_be_clickable((By.XPATH, '//h4[@class="quote-number ng-binding"]'))).text.split("#")[1]
        break
    except TimeoutException:
        driver.refresh()
        retries += 1
Posted by: Guest on July-28-2021

Code answers related to "reload in selenium if timeout"

Browse Popular Code Answers by Language