puppeteer/docs/api/puppeteer.frame.tap.md

53 lines
524 B
Markdown
Raw Permalink Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Frame.tap
---
# Frame.tap() method
Taps the first element that matches the `selector`.
2022-07-05 13:41:43 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class Frame {
tap(selector: string): Promise<void>;
}
```
## Parameters
<table><thead><tr><th>
2022-07-05 13:41:43 +00:00
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
selector
</td><td>
string
</td><td>
The selector to query for.
</td></tr>
</tbody></table>
2022-07-05 13:41:43 +00:00
**Returns:**
Promise&lt;void&gt;
## Exceptions
2022-07-05 13:41:43 +00:00
Throws if there's no element matching `selector`.