-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design and implement selector shots #8
Labels
enhancement
New feature or request
Comments
https://playwright.dev/python/docs/screenshots page.locator(".header").screenshot(path="screenshot.png") |
In single shot mode:
In YAML: - url: https://simonwillison.net/
output: simonwillison.net.png
selector: "#bighead" |
simonw
added a commit
that referenced
this issue
Mar 9, 2022
Testing - output: example.com.png
url: http://www.example.com/
- output: w3c.org.png
url: https://www.w3.org/
- output: simonwillison-bighead.png
url: https://simonwillison.net/
selector: "#bighead"
That last one produced this: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goal here is to be able to take a screenshot of a specific component of the page, identified by a CSS selector.
Should work for both multi and single shot mode.
The text was updated successfully, but these errors were encountered: