Skip to main content
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
await locator.waitFor();