puppeteer/website/versioned_docs/version-22.10.0/api/puppeteer.extensiontransport.connecttab.md

45 lines
503 B
Markdown
Raw Normal View History

---
sidebar_label: ExtensionTransport.connectTab
---
# ExtensionTransport.connectTab() method
#### Signature:
```typescript
class ExtensionTransport {
static connectTab(tabId: number): Promise<ExtensionTransport>;
}
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
tabId
</td><td>
number
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Promise&lt;[ExtensionTransport](./puppeteer.extensiontransport.md)&gt;