mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
532 B
532 B
sidebar_label
| sidebar_label |
|---|
| Frame.focus |
Frame.focus() method
Focuses the first element that matches the selector.
Signature
class Frame {
focus(selector: string): Promise<void>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
selector |
string |
The selector to query for. |
Returns:
Promise<void>
Exceptions
Throws if there's no element matching selector.