warningUse locator-based page.locator(selector) instead.
The method finds all elements matching the specified selector within the page. If no elements match the selector, the return value resolves to [].
Returns
Type | Description |
---|---|
null | ElementHandle[] | Returns an array of ElementHandle when multiple elements are found. Else, it returns null. |