Ошибка тайм-аута при создании кода:
>>> wait.until(ec.visibility_of_element_located(('xpath', '//*[@id="ucf_table"]/tbody/tr[1]/td[2]/a')))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Harrison Pollock\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
>>> codes = driver.find_element_by_xpath('//*[@id="ucf_table"]/tbody/tr[1]/td[2]/a')
>>> print(codes.text)
Попытка ввода тайм-аута:
>>> def my_func():
... with timeout(1):
... wait.until(ec.visibility_of_element_located(('xpath', '//*[@id="ucf_table"]/tbody/tr[1]/td[2]/a')))
... import time
... time.sleep(10)