-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Environment Information
Stagehand:
- Language/SDK: TypeScript
- Stagehand version: 3.0.7
Issue Description
It seem that when using the mask option on page.screenshot, that only the first matching element is masked.
If this is intended behaviour, it certainly was not expected. There does not seem to be any way to explicitly opt into masking all matching elements.
Steps to Reproduce
- use
page.screenshotwith an overly broad locator (e.g.,mask: page.locator('input')) - call page.screenshot on a page with multiple matching elements
- save the screenshot to a file to observe
- note that only the first input is masked
Minimal Reproduction Code
I will try to set up a minimal repro and edit this soon.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels