[Feature] `screenshot` methods can have a long delay
See original GitHub issueSo basically I have noticed that screenshot
functions can have a rather long delay before actually taking the screenshot.
try:
if not page.locator("#foo").is_visible():
raise Exception("failed to find element")
except Exception:
page.screenshot() # the element appears before it takes the screenshot because 'screenshot' is doing something that takes a long time
raise
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:9 (7 by maintainers)
Top Results From Across the Web
How to use the Delay feature in Windows 10's Snipping Tool
Once the Snipping Tool is up and running, click Delay, as shown in Figure B, and select the number of seconds you want...
Read more >Capture pop-up menus with Windows 10's new delayed ...
First, open up the Snipping tool and click Delay to choose your delay time in seconds. You can choose between 0 and 5...
Read more >How do I take screenshots with a delay? - Ask Ubuntu
The answer is quite similar for each distro. It requires you to use the "delay" feature present in these tools. The delay feature...
Read more >How do you snap a screenshot on Android 9 given a delay ...
So I want to see if a delayed snapshot tool can snapshot in, oh, say, 10 seconds after I initiate the screenshot tool....
Read more >Screen Capture: The Best Way to Take Screenshots (PC and ...
There are many reasons to take a screenshot (also known as a screen grab or screen capture). Quickly learn how to capture screen...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wow, this is blazingly fast🔥! That’s amazing 🚀.
here’s a workaround to take a screenshot with no delay:
it would be nice if playwright’s
screenshot
method had an option to behave like this