Apify Discord Mirror

Updated 5 months ago

My Code Scratch

At a glance

The post describes an error encountered while trying to extract data, with a traceback indicating a timeout exception in a Selenium WebDriverWait operation. The first comment requests the community member to provide the code or a link to the run on the platform, as the commenter cannot provide any advice based on the provided traceback. The second comment suggests that the issue is likely due to the element the WebDriverWait is looking for not being found, causing the timeout. There is no explicitly marked answer in the comments.

2023-12-02T21:40:35.188Z ERROR Cannot extract data from
2023-12-02T21:40:35.190Z Traceback (most recent call last):
2023-12-02T21:40:35.191Z File "/usr/src/app/src/main.py", line 50, in main
2023-12-02T21:40:35.192Z button = WebDriverWait(driver, 20).until(
2023-12-02T21:40:35.193Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-12-02T21:40:35.194Z File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/support/wait.py", line 95, in until
2023-12-02T21:40:35.195Z raise TimeoutException(message, screen, stacktrace)
2023-12-02T21:40:35.196Z selenium.common.exceptions.TimeoutException: Message:
2023-12-02T21:40:35.198Z Stacktrace:
please could someone help or give advice
V
K
2 comments
Hi, could you please provide the code of your Actor? Or link to the Actor run on the platform? So I can replicate it. I cannot tell you anything based on this piece of traceback.
the element that your webdriverwait.until doesn't find the element that you are looking for so it times out
Add a reply
Sign up and join the conversation on Discord