mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
45 lines
503 B
Markdown
45 lines
503 B
Markdown
|
---
|
||
|
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<[ExtensionTransport](./puppeteer.extensiontransport.md)>
|