sidebar_label |
---|
ElementHandle.$ |
Queries the current element for an element matching the given selector.
class ElementHandle {
$<Selector extends string>(
selector: Selector
): Promise<ElementHandle<NodeFor<Selector>> | null>;
}
Parameter |
Type |
Description |
---|---|---|
selector |
Selector |
The selector to query for. |
Promise<ElementHandle<NodeFor<Selector>> | null>
A element handle to the first element matching the given selector. Otherwise, null
.