puppeteer/website/versioned_docs/version-22.6.5/api/puppeteer.locator.setwaitforenabled.md

59 lines
615 B
Markdown
Raw Normal View History

---
sidebar_label: Locator.setWaitForEnabled
---
# Locator.setWaitForEnabled() method
#### Signature:
```typescript
class Locator {
setWaitForEnabled<NodeType extends Node>(
this: Locator<NodeType>,
value: boolean
): Locator<NodeType>;
}
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
this
</td><td>
[Locator](./puppeteer.locator.md)&lt;NodeType&gt;
</td><td>
</td></tr>
<tr><td>
value
</td><td>
boolean
</td><td>
</td></tr>
</tbody></table>
**Returns:**
[Locator](./puppeteer.locator.md)&lt;NodeType&gt;