puppeteer/website/versioned_docs/version-22.8.1/api/puppeteer.locator.settimeout.md

45 lines
422 B
Markdown
Raw Normal View History

---
sidebar_label: Locator.setTimeout
---
# Locator.setTimeout() method
#### Signature:
```typescript
class Locator {
setTimeout(timeout: number): Locator<T>;
}
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
timeout
</td><td>
number
</td><td>
</td></tr>
</tbody></table>
**Returns:**
[Locator](./puppeteer.locator.md)&lt;T&gt;