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

23 lines
469 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; [Page](./puppeteer.page.md) &gt; [focus](./puppeteer.page.focus.md)
## Page.focus() method
<b>Signature:</b>
```typescript
focus(selector: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | |
<b>Returns:</b>
Promise&lt;void&gt;