Skip to main content
BCTRL home page
v1
Search...
⌘K
Support
Dashboard
Dashboard
Search...
Navigation
Locator
Waiting
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
waitFor
Locator
Waiting
Copy page
Playwright Locator — waiting methods
Copy page
Locator waiting methods for the
Playwright
driver.
waitFor
Waits for element to satisfy the given state.
State options: ‘attached’, ‘detached’, ‘visible’, ‘hidden’. Returns immediately if condition is already met. Default state is ‘visible’.
Upstream docs
options
PlaywrightWaitForOptions
SDK
HTTP
Copy
await
locator
.
waitFor
();
State Checks
Screenshots & PDF
⌘I