Skip to content

Commit 31bf165

Browse files
committed
deploy: 396fc64
1 parent 66aebcb commit 31bf165

File tree

2 files changed

+176
-0
lines changed

2 files changed

+176
-0
lines changed

async_api.html

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ <h1 class="title">Module <code>playwright.async_api</code></h1>
9090
from playwright.network import Request as RequestImpl
9191
from playwright.network import Response as ResponseImpl
9292
from playwright.network import Route as RouteImpl
93+
from playwright.network import WebSocket as WebSocketImpl
9394
from playwright.page import BindingCall as BindingCallImpl
9495
from playwright.page import Page as PageImpl
9596
from playwright.page import Worker as WorkerImpl
@@ -516,6 +517,26 @@ <h1 class="title">Module <code>playwright.async_api</code></h1>
516517
mapping.register(RouteImpl, Route)
517518

518519

520+
class WebSocket(AsyncBase):
521+
def __init__(self, obj: WebSocketImpl):
522+
super().__init__(obj)
523+
524+
@property
525+
def url(self) -&gt; str:
526+
&#34;&#34;&#34;WebSocket.url
527+
528+
Contains the URL of the WebSocket.
529+
530+
Returns
531+
-------
532+
str
533+
&#34;&#34;&#34;
534+
return mapping.from_maybe_impl(self._impl_obj.url)
535+
536+
537+
mapping.register(WebSocketImpl, WebSocket)
538+
539+
519540
class Keyboard(AsyncBase):
520541
def __init__(self, obj: KeyboardImpl):
521542
super().__init__(obj)
@@ -24555,6 +24576,67 @@ <h2 id="returns">Returns</h2>
2455524576
</dd>
2455624577
</dl>
2455724578
</dd>
24579+
<dt id="playwright.async_api.WebSocket"><code class="flex name class">
24580+
<span>class <span class="ident">WebSocket</span></span>
24581+
<span>(</span><span>obj: playwright.network.WebSocket)</span>
24582+
</code></dt>
24583+
<dd>
24584+
<div class="desc"></div>
24585+
<details class="source">
24586+
<summary>
24587+
<span>Expand source code</span>
24588+
</summary>
24589+
<pre><code class="python">class WebSocket(AsyncBase):
24590+
def __init__(self, obj: WebSocketImpl):
24591+
super().__init__(obj)
24592+
24593+
@property
24594+
def url(self) -&gt; str:
24595+
&#34;&#34;&#34;WebSocket.url
24596+
24597+
Contains the URL of the WebSocket.
24598+
24599+
Returns
24600+
-------
24601+
str
24602+
&#34;&#34;&#34;
24603+
return mapping.from_maybe_impl(self._impl_obj.url)</code></pre>
24604+
</details>
24605+
<h3>Ancestors</h3>
24606+
<ul class="hlist">
24607+
<li>playwright.async_base.AsyncBase</li>
24608+
<li>playwright.impl_to_api_mapping.ImplWrapper</li>
24609+
</ul>
24610+
<h3>Instance variables</h3>
24611+
<dl>
24612+
<dt id="playwright.async_api.WebSocket.url"><code class="name">var <span class="ident">url</span> : str</code></dt>
24613+
<dd>
24614+
<div class="desc"><p>WebSocket.url</p>
24615+
<p>Contains the URL of the WebSocket.</p>
24616+
<h2 id="returns">Returns</h2>
24617+
<dl>
24618+
<dt><code>str</code></dt>
24619+
<dd>&nbsp;</dd>
24620+
</dl></div>
24621+
<details class="source">
24622+
<summary>
24623+
<span>Expand source code</span>
24624+
</summary>
24625+
<pre><code class="python">@property
24626+
def url(self) -&gt; str:
24627+
&#34;&#34;&#34;WebSocket.url
24628+
24629+
Contains the URL of the WebSocket.
24630+
24631+
Returns
24632+
-------
24633+
str
24634+
&#34;&#34;&#34;
24635+
return mapping.from_maybe_impl(self._impl_obj.url)</code></pre>
24636+
</details>
24637+
</dd>
24638+
</dl>
24639+
</dd>
2455824640
<dt id="playwright.async_api.Worker"><code class="flex name class">
2455924641
<span>class <span class="ident">Worker</span></span>
2456024642
<span>(</span><span>obj: playwright.page.Worker)</span>
@@ -25183,6 +25265,12 @@ <h4><code><a title="playwright.async_api.Video" href="#playwright.async_api.Vide
2518325265
</ul>
2518425266
</li>
2518525267
<li>
25268+
<h4><code><a title="playwright.async_api.WebSocket" href="#playwright.async_api.WebSocket">WebSocket</a></code></h4>
25269+
<ul class="">
25270+
<li><code><a title="playwright.async_api.WebSocket.url" href="#playwright.async_api.WebSocket.url">url</a></code></li>
25271+
</ul>
25272+
</li>
25273+
<li>
2518625274
<h4><code><a title="playwright.async_api.Worker" href="#playwright.async_api.Worker">Worker</a></code></h4>
2518725275
<ul class="">
2518825276
<li><code><a title="playwright.async_api.Worker.evaluate" href="#playwright.async_api.Worker.evaluate">evaluate</a></code></li>

sync_api.html

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ <h1 class="title">Module <code>playwright.sync_api</code></h1>
8989
from playwright.network import Request as RequestImpl
9090
from playwright.network import Response as ResponseImpl
9191
from playwright.network import Route as RouteImpl
92+
from playwright.network import WebSocket as WebSocketImpl
9293
from playwright.page import BindingCall as BindingCallImpl
9394
from playwright.page import Page as PageImpl
9495
from playwright.page import Worker as WorkerImpl
@@ -522,6 +523,26 @@ <h1 class="title">Module <code>playwright.sync_api</code></h1>
522523
mapping.register(RouteImpl, Route)
523524

524525

526+
class WebSocket(SyncBase):
527+
def __init__(self, obj: WebSocketImpl):
528+
super().__init__(obj)
529+
530+
@property
531+
def url(self) -&gt; str:
532+
&#34;&#34;&#34;WebSocket.url
533+
534+
Contains the URL of the WebSocket.
535+
536+
Returns
537+
-------
538+
str
539+
&#34;&#34;&#34;
540+
return mapping.from_maybe_impl(self._impl_obj.url)
541+
542+
543+
mapping.register(WebSocketImpl, WebSocket)
544+
545+
525546
class Keyboard(SyncBase):
526547
def __init__(self, obj: KeyboardImpl):
527548
super().__init__(obj)
@@ -25277,6 +25298,67 @@ <h2 id="returns">Returns</h2>
2527725298
</dd>
2527825299
</dl>
2527925300
</dd>
25301+
<dt id="playwright.sync_api.WebSocket"><code class="flex name class">
25302+
<span>class <span class="ident">WebSocket</span></span>
25303+
<span>(</span><span>obj: playwright.network.WebSocket)</span>
25304+
</code></dt>
25305+
<dd>
25306+
<div class="desc"></div>
25307+
<details class="source">
25308+
<summary>
25309+
<span>Expand source code</span>
25310+
</summary>
25311+
<pre><code class="python">class WebSocket(SyncBase):
25312+
def __init__(self, obj: WebSocketImpl):
25313+
super().__init__(obj)
25314+
25315+
@property
25316+
def url(self) -&gt; str:
25317+
&#34;&#34;&#34;WebSocket.url
25318+
25319+
Contains the URL of the WebSocket.
25320+
25321+
Returns
25322+
-------
25323+
str
25324+
&#34;&#34;&#34;
25325+
return mapping.from_maybe_impl(self._impl_obj.url)</code></pre>
25326+
</details>
25327+
<h3>Ancestors</h3>
25328+
<ul class="hlist">
25329+
<li>playwright.sync_base.SyncBase</li>
25330+
<li>playwright.impl_to_api_mapping.ImplWrapper</li>
25331+
</ul>
25332+
<h3>Instance variables</h3>
25333+
<dl>
25334+
<dt id="playwright.sync_api.WebSocket.url"><code class="name">var <span class="ident">url</span> : str</code></dt>
25335+
<dd>
25336+
<div class="desc"><p>WebSocket.url</p>
25337+
<p>Contains the URL of the WebSocket.</p>
25338+
<h2 id="returns">Returns</h2>
25339+
<dl>
25340+
<dt><code>str</code></dt>
25341+
<dd>&nbsp;</dd>
25342+
</dl></div>
25343+
<details class="source">
25344+
<summary>
25345+
<span>Expand source code</span>
25346+
</summary>
25347+
<pre><code class="python">@property
25348+
def url(self) -&gt; str:
25349+
&#34;&#34;&#34;WebSocket.url
25350+
25351+
Contains the URL of the WebSocket.
25352+
25353+
Returns
25354+
-------
25355+
str
25356+
&#34;&#34;&#34;
25357+
return mapping.from_maybe_impl(self._impl_obj.url)</code></pre>
25358+
</details>
25359+
</dd>
25360+
</dl>
25361+
</dd>
2528025362
<dt id="playwright.sync_api.Worker"><code class="flex name class">
2528125363
<span>class <span class="ident">Worker</span></span>
2528225364
<span>(</span><span>obj: playwright.page.Worker)</span>
@@ -25921,6 +26003,12 @@ <h4><code><a title="playwright.sync_api.Video" href="#playwright.sync_api.Video"
2592126003
</ul>
2592226004
</li>
2592326005
<li>
26006+
<h4><code><a title="playwright.sync_api.WebSocket" href="#playwright.sync_api.WebSocket">WebSocket</a></code></h4>
26007+
<ul class="">
26008+
<li><code><a title="playwright.sync_api.WebSocket.url" href="#playwright.sync_api.WebSocket.url">url</a></code></li>
26009+
</ul>
26010+
</li>
26011+
<li>
2592426012
<h4><code><a title="playwright.sync_api.Worker" href="#playwright.sync_api.Worker">Worker</a></code></h4>
2592526013
<ul class="">
2592626014
<li><code><a title="playwright.sync_api.Worker.evaluate" href="#playwright.sync_api.Worker.evaluate">evaluate</a></code></li>

0 commit comments

Comments
 (0)