puppeteer/docs/api/puppeteer.waitforselectoroptions.md
dependabot[bot] 93e9acc410
chore(deps-dev): Bump the dev-dependencies group with 3 updates (#12101)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-03-20 15:03:14 +00:00

121 lines
1.3 KiB
Markdown

---
sidebar_label: WaitForSelectorOptions
---
# WaitForSelectorOptions interface
#### Signature:
```typescript
export interface WaitForSelectorOptions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th><th>
Default
</th></tr></thead>
<tbody><tr><td>
hidden
</td><td>
`optional`
</td><td>
boolean
</td><td>
Wait for the selected element to not be found in the DOM or to be hidden, i.e. have `display: none` or `visibility: hidden` CSS properties.
</td><td>
`false`
</td></tr>
<tr><td>
signal
</td><td>
`optional`
</td><td>
AbortSignal
</td><td>
A signal object that allows you to cancel a waitForSelector call.
</td><td>
</td></tr>
<tr><td>
timeout
</td><td>
`optional`
</td><td>
number
</td><td>
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)
</td><td>
`30_000` (30 seconds)
</td></tr>
<tr><td>
visible
</td><td>
`optional`
</td><td>
boolean
</td><td>
Wait for the selected element to be present in DOM and to be visible, i.e. to not have `display: none` or `visibility: hidden` CSS properties.
</td><td>
`false`
</td></tr>
</tbody></table>