Skip to main content
Element Handle queries methods for the Playwright driver.

$

Query for a child element matching the selector.
Discouraged in favor of locator-based locator.locator().
Upstream docs
selector
string
required
result
RemotePlaywrightElementHandle | null
Return value
await element.$('...');

$$

Query for all child elements matching the selector.
Discouraged in favor of locator-based locator.locator().
Upstream docs
selector
string
required
result
RemotePlaywrightElementHandle[]
Return value
await element.$$('...');