sidebar_label |
---|
Frame.$ |
Queries the frame for an element matching the given selector.
class Frame {
$<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
.