puppeteer/new-docs/puppeteer.frame.focus.md

23 lines
473 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Frame](./puppeteer.frame.md) &gt; [focus](./puppeteer.frame.focus.md)
## Frame.focus() method
<b>Signature:</b>
```typescript
focus(selector: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | |
<b>Returns:</b>
Promise&lt;void&gt;