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