Skip to main content
BCTRL home page
v1
Search...
⌘K
Support
Dashboard
Dashboard
Search...
Navigation
Locator
Screenshots & PDF
Home
SDK Reference
API Reference
Pricing
Cookbook
Changelog
GitHub
Discord
SDK API (HTTP)
SDK Reference
Sessions
Profiles
Session Features
Session Events
Vault
Storage
Extensions
Discover
Browser Automation
Playwright
Page
Playwright Browser
Context
Locator
Actions
Queries
Content
State Checks
Waiting
Screenshots & PDF
Evaluation
Other
Element Handle
Frame
Puppeteer
Stagehand
On this page
screenshot
Locator
Screenshots & PDF
Copy page
Playwright Locator — screenshots & pdf methods
Copy page
Locator screenshots & pdf methods for the
Playwright
driver.
screenshot
Takes a screenshot of the element.
Waits for actionability checks and scrolls element into view. Returns screenshot clipped to element size and position.
Upstream docs
options
PlaywrightScreenshotOptions
result
Buffer
Return value
SDK
HTTP
Copy
await
locator
.
screenshot
();
Waiting
Evaluation
⌘I