2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: WaitForSelectorOptions.timeout
|
|
|
|
---
|
|
|
|
|
|
|
|
# WaitForSelectorOptions.timeout property
|
|
|
|
|
2022-08-16 11:58:16 +00:00
|
|
|
Maximum time to wait in milliseconds. Pass `0` to disable timeout.
|
|
|
|
|
|
|
|
The default value can be changed by using [Page.setDefaultTimeout()](./puppeteer.page.setdefaulttimeout.md)
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
interface WaitForSelectorOptions {
|
|
|
|
timeout?: number;
|
|
|
|
}
|
|
|
|
```
|
2022-10-24 14:31:12 +00:00
|
|
|
|
|
|
|
#### Default value:
|
|
|
|
|
|
|
|
`30000` (30 seconds)
|