[Bug]: Failed Screenschot Download
Describe the bug
When I Try to run it I get the error
I am running Ubuntu 22.04 and using Python 3.10
│ Error: Page.wait_for_selector: Timeout 30000ms exceeded. │ │ Call log: │ │ waiting for locator("[data-adclicklocation="title"]") to be visible
╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Sorry, something went wrong with this version! Try again, and feel free to report this issue at │ │ GitHub or the Discord community. │ │ Version: 3.3.0 │ │ Error: Page.wait_for_selector: Timeout 30000ms exceeded. │ │ Call log: │ │ waiting for locator("[data-adclicklocation=\"title\"]") to be visible │ │ │ │ Config: {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': │ │ False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': │ │ 1920, 'zoom': 1.0, 'channel_name': 'Reddit Stories Hourly', 'background': {'background_video': │ │ 'minecraft', 'background_audio': 'lofi', 'background_audio_volume': 0.15, 'enable_extra_audio': │ │ False, 'background_thumbnail': False, 'background_thumbnail_font_family': 'arial', │ │ 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': │ │ {'voice_choice': 'elevenlabs', 'random_voice': True, 'elevenlabs_voice_name': 'Rachel', │ │ 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': '', 'streamlabs_polly_voice': 'Matthew', │ │ 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED', 'python_voice': '1', 'py_voice_num': │ │ '2', 'silence_duration': 0.3, 'no_emojis': False}} │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ Traceback (most recent call last): File "/home/niko/yt/auto/RedditVideoMakerBot/main.py", line 131, in <module> raise err File "/home/niko/yt/auto/RedditVideoMakerBot/main.py", line 113, in <module> run_many(config["settings"]["times_to_run"]) File "/home/niko/yt/auto/RedditVideoMakerBot/main.py", line 68, in run_many main() File "/home/niko/yt/auto/RedditVideoMakerBot/main.py", line 52, in main get_screenshots_of_reddit_posts(reddit_object, number_of_comments) File "/home/niko/yt/auto/RedditVideoMakerBot/video_creation/screenshot_downloader.py", line 164, in get_screenshots_of_reddit_posts page.wait_for_selector('[data-adclicklocation="title"]') File "/home/niko/.local/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 7834, in wait_for_selector self._sync( File "/home/niko/.local/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync return task.result() File "/home/niko/.local/lib/python3.10/site-packages/playwright/_impl/_page.py", line 392, in wait_for_selector return await self._main_frame.wait_for_selector(**locals_to_params(locals())) File "/home/niko/.local/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 323, in wait_for_selector await self._channel.send("waitForSelector", locals_to_params(locals())) File "/home/niko/.local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 59, in send return await self._connection.wrap_api_call( File "/home/niko/.local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.TimeoutError: Page.wait_for_selector: Timeout 30000ms exceeded. Call log: waiting for locator("[data-adclicklocation=\"title\"]") to be visible
Reproduction Steps
Run the Program
Expected behavior
For it to work
Screenshots
No response
System Information
I am running Ubuntu 22.04 and using Python 3.10
Checklist
- [x] I have searched the open issues for duplicates.
- [x] I have shown the entire traceback, if possible.
Additional Context
No response
it can't find that dom. Sometimes making headless=false you can see much more clearer on why the code can't see the dom. Very hard to reproduce as your reddit setting can vary alot.
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.
Issue closed due to being stale. Please reopen if issue persists in latest version.