@@ -6338,32 +6338,6 @@ <h1 class="title">Module <code>playwright.async_api</code></h1>
6338
6338
)
6339
6339
)
6340
6340
6341
- async def connect(
6342
- self, wsEndpoint: str, slowMo: int = None, timeout: int = None
6343
- ) -> "Browser":
6344
- """BrowserType.connect
6345
-
6346
- This methods attaches Playwright to an existing browser instance.
6347
-
6348
- Parameters
6349
- ----------
6350
- wsEndpoint : str
6351
- A browser websocket endpoint to connect to. **required**
6352
- slowMo : Optional[int]
6353
- Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
6354
- timeout : Optional[int]
6355
- Maximum time in milliseconds to wait for the connection to be established. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
6356
-
6357
- Returns
6358
- -------
6359
- Browser
6360
- """
6361
- return mapping.from_impl(
6362
- await self._impl_obj.connect(
6363
- wsEndpoint=wsEndpoint, slowMo=slowMo, timeout=timeout
6364
- )
6365
- )
6366
-
6367
6341
6368
6342
mapping.register(BrowserTypeImpl, BrowserType)
6369
6343
@@ -8735,32 +8709,6 @@ <h2 id="returns">Returns</h2>
8735
8709
videoSize=videoSize,
8736
8710
recordHar=recordHar,
8737
8711
)
8738
- )
8739
-
8740
- async def connect(
8741
- self, wsEndpoint: str, slowMo: int = None, timeout: int = None
8742
- ) -> "Browser":
8743
- """BrowserType.connect
8744
-
8745
- This methods attaches Playwright to an existing browser instance.
8746
-
8747
- Parameters
8748
- ----------
8749
- wsEndpoint : str
8750
- A browser websocket endpoint to connect to. **required**
8751
- slowMo : Optional[int]
8752
- Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
8753
- timeout : Optional[int]
8754
- Maximum time in milliseconds to wait for the connection to be established. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
8755
-
8756
- Returns
8757
- -------
8758
- Browser
8759
- """
8760
- return mapping.from_impl(
8761
- await self._impl_obj.connect(
8762
- wsEndpoint=wsEndpoint, slowMo=slowMo, timeout=timeout
8763
- )
8764
8712
)</code></pre>
8765
8713
</details>
8766
8714
<h3>Ancestors</h3>
@@ -8823,57 +8771,6 @@ <h2 id="returns">Returns</h2>
8823
8771
</dl>
8824
8772
<h3>Methods</h3>
8825
8773
<dl>
8826
- <dt id="playwright.async_api.BrowserType.connect"><code class="name flex">
8827
- <span>async def <span class="ident">connect</span></span>(<span>self, wsEndpoint: str, slowMo: int = None, timeout: int = None) ‑> <a title="playwright.async_api.Browser" href="#playwright.async_api.Browser">Browser</a></span>
8828
- </code></dt>
8829
- <dd>
8830
- <div class="desc"><p>BrowserType.connect</p>
8831
- <p>This methods attaches Playwright to an existing browser instance.</p>
8832
- <h2 id="parameters">Parameters</h2>
8833
- <dl>
8834
- <dt><strong><code>wsEndpoint</code></strong> : <code>str</code></dt>
8835
- <dd>A browser websocket endpoint to connect to. <strong>required</strong></dd>
8836
- <dt><strong><code>slowMo</code></strong> : <code>Optional[int]</code></dt>
8837
- <dd>Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.</dd>
8838
- <dt><strong><code>timeout</code></strong> : <code>Optional[int]</code></dt>
8839
- <dd>Maximum time in milliseconds to wait for the connection to be established. Defaults to <code>30000</code> (30 seconds). Pass <code>0</code> to disable timeout.</dd>
8840
- </dl>
8841
- <h2 id="returns">Returns</h2>
8842
- <dl>
8843
- <dt><code><a title="playwright.async_api.Browser" href="#playwright.async_api.Browser">Browser</a></code></dt>
8844
- <dd> </dd>
8845
- </dl></div>
8846
- <details class="source">
8847
- <summary>
8848
- <span>Expand source code</span>
8849
- </summary>
8850
- <pre><code class="python">async def connect(
8851
- self, wsEndpoint: str, slowMo: int = None, timeout: int = None
8852
- ) -> "Browser":
8853
- """BrowserType.connect
8854
-
8855
- This methods attaches Playwright to an existing browser instance.
8856
-
8857
- Parameters
8858
- ----------
8859
- wsEndpoint : str
8860
- A browser websocket endpoint to connect to. **required**
8861
- slowMo : Optional[int]
8862
- Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
8863
- timeout : Optional[int]
8864
- Maximum time in milliseconds to wait for the connection to be established. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
8865
-
8866
- Returns
8867
- -------
8868
- Browser
8869
- """
8870
- return mapping.from_impl(
8871
- await self._impl_obj.connect(
8872
- wsEndpoint=wsEndpoint, slowMo=slowMo, timeout=timeout
8873
- )
8874
- )</code></pre>
8875
- </details>
8876
- </dd>
8877
8774
<dt id="playwright.async_api.BrowserType.launch"><code class="name flex">
8878
8775
<span>async def <span class="ident">launch</span></span>(<span>self, executablePath: Union[str, pathlib.Path] = None, args: List[str] = None, ignoreDefaultArgs: Union[bool, List[str]] = None, handleSIGINT: bool = None, handleSIGTERM: bool = None, handleSIGHUP: bool = None, timeout: int = None, env: Dict[str, Union[str, int, bool]] = None, headless: bool = None, devtools: bool = None, proxy: playwright.helper.ProxyServer = None, downloadsPath: Union[str, pathlib.Path] = None, slowMo: int = None, chromiumSandbox: bool = None, firefoxUserPrefs: Dict[str, Union[str, int, bool]] = None) ‑> <a title="playwright.async_api.Browser" href="#playwright.async_api.Browser">Browser</a></span>
8879
8776
</code></dt>
@@ -24932,7 +24829,6 @@ <h4><code><a title="playwright.async_api.BrowserContext" href="#playwright.async
24932
24829
<li>
24933
24830
<h4><code><a title="playwright.async_api.BrowserType" href="#playwright.async_api.BrowserType">BrowserType</a></code></h4>
24934
24831
<ul class="">
24935
- <li><code><a title="playwright.async_api.BrowserType.connect" href="#playwright.async_api.BrowserType.connect">connect</a></code></li>
24936
24832
<li><code><a title="playwright.async_api.BrowserType.executablePath" href="#playwright.async_api.BrowserType.executablePath">executablePath</a></code></li>
24937
24833
<li><code><a title="playwright.async_api.BrowserType.launch" href="#playwright.async_api.BrowserType.launch">launch</a></code></li>
24938
24834
<li><code><a title="playwright.async_api.BrowserType.launchPersistentContext" href="#playwright.async_api.BrowserType.launchPersistentContext">launchPersistentContext</a></code></li>
0 commit comments