[Bug]: Screenshots Not Working
Describe the bug
So the bot runs like this:
Launching Headless Browser... Logging in to Reddit... Skipping translation... Something went wrong! Something went wrong with making the screenshots! Do you want to skip the post? (y/n) n Do you want the error traceback for debugging purposes? (y/n)y
raceback (most recent call last):
File "/Users/wafflehacker/Sites/RedditVideoMakerBot/main.py", line 132, in <module>
raise err
File "/Users/wafflehacker/Sites/RedditVideoMakerBot/main.py", line 111, in <module>
main(post_id)
File "/Users/wafflehacker/Sites/RedditVideoMakerBot/main.py", line 53, in main
get_screenshots_of_reddit_posts(reddit_object, number_of_comments)
File "/Users/wafflehacker/Sites/RedditVideoMakerBot/video_creation/screenshot_downloader.py", line 218, in get_screenshots_of_reddit_posts
raise e
File "/Users/wafflehacker/Sites/RedditVideoMakerBot/video_creation/screenshot_downloader.py", line 191, in get_screenshots_of_reddit_posts
location = page.locator('[data-test-id="post-content"]').bounding_box()
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 12114, in bounding_box
self._sync(self._impl_obj.bounding_box(timeout=timeout))
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 89, in _sync
return task.result()
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 115, in bounding_box
return await self._with_element(
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 99, in _with_element
handle = await self.element_handle(timeout=timeout)
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 219, in element_handle
handle = await self._frame.wait_for_selector(
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 307, in wait_for_selector
await self._channel.send("waitForSelector", locals_to_params(locals()))
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 43, in send
return await self._connection.wrap_api_call(
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 370, in _
return await result
File "/usr/local/anaconda3/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 78, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for selector "[data-test-id="post-content"]"
============================================================
Reproduction Steps
Launch main.py Wait for the screenshots.
Expected behavior
Grab screenshots
Screenshots
No response
System Information
Operating System : MacOS 3.14 Python version : Python 3.10 App version / Branch : 3.2 (master)
Checklist
- [X] I have searched the open issues for duplicates.
- [X] I have shown the entire traceback, if possible.
Additional Context
No response
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.
did you manage to fix it?
Also having the same issue.
I also have the issue with the newest version.
Reddit updated
Did anyone find a fix??