@@ -92,6 +92,7 @@ <h1 class="title">Module <code>playwright.sync_api</code></h1>
92
92
from playwright.playwright import Playwright as PlaywrightImpl
93
93
from playwright.selectors import Selectors as SelectorsImpl
94
94
from playwright.sync_base import EventContextManager, SyncBase, mapping
95
+ from playwright.video import Video as VideoImpl
95
96
96
97
NoneType = type(None)
97
98
@@ -3283,6 +3284,25 @@ <h1 class="title">Module <code>playwright.sync_api</code></h1>
3283
3284
mapping.register(DownloadImpl, Download)
3284
3285
3285
3286
3287
+ class Video(SyncBase):
3288
+ def __init__(self, obj: VideoImpl):
3289
+ super().__init__(obj)
3290
+
3291
+ def path(self) -> str:
3292
+ """Video.path
3293
+
3294
+ Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context.
3295
+
3296
+ Returns
3297
+ -------
3298
+ str
3299
+ """
3300
+ return mapping.from_maybe_impl(self._sync(self._impl_obj.path()))
3301
+
3302
+
3303
+ mapping.register(VideoImpl, Video)
3304
+
3305
+
3286
3306
class BindingCall(SyncBase):
3287
3307
def __init__(self, obj: BindingCallImpl):
3288
3308
super().__init__(obj)
@@ -3391,6 +3411,18 @@ <h1 class="title">Module <code>playwright.sync_api</code></h1>
3391
3411
"""
3392
3412
return mapping.from_impl_list(self._impl_obj.workers)
3393
3413
3414
+ @property
3415
+ def video(self) -> typing.Union["Video", NoneType]:
3416
+ """Page.video
3417
+
3418
+ Video object associated with this page.
3419
+
3420
+ Returns
3421
+ -------
3422
+ Optional[Video]
3423
+ """
3424
+ return mapping.from_impl_nullable(self._impl_obj.video)
3425
+
3394
3426
def remove_listener(self, event: str, f: typing.Any) -> NoneType:
3395
3427
return mapping.from_maybe_impl(
3396
3428
self._impl_obj.remove_listener(event=event, f=mapping.to_impl(f))
@@ -17244,6 +17276,18 @@ <h2 id="parameters">Parameters</h2>
17244
17276
"""
17245
17277
return mapping.from_impl_list(self._impl_obj.workers)
17246
17278
17279
+ @property
17280
+ def video(self) -> typing.Union["Video", NoneType]:
17281
+ """Page.video
17282
+
17283
+ Video object associated with this page.
17284
+
17285
+ Returns
17286
+ -------
17287
+ Optional[Video]
17288
+ """
17289
+ return mapping.from_impl_nullable(self._impl_obj.video)
17290
+
17247
17291
def remove_listener(self, event: str, f: typing.Any) -> NoneType:
17248
17292
return mapping.from_maybe_impl(
17249
17293
self._impl_obj.remove_listener(event=event, f=mapping.to_impl(f))
@@ -19336,6 +19380,32 @@ <h2 id="returns">Returns</h2>
19336
19380
return mapping.from_maybe_impl(self._impl_obj.url)</code></pre>
19337
19381
</details>
19338
19382
</dd>
19383
+ <dt id="playwright.sync_api.Page.video"><code class="name">var <span class="ident">video</span> : Union[<a title="playwright.async_api.Video" href="async_api.html#playwright.async_api.Video">Video</a>, NoneType]</code></dt>
19384
+ <dd>
19385
+ <div class="desc"><p>Page.video</p>
19386
+ <p>Video object associated with this page.</p>
19387
+ <h2 id="returns">Returns</h2>
19388
+ <dl>
19389
+ <dt><code>Optional[<a title="playwright.sync_api.Video" href="#playwright.sync_api.Video">Video</a>]</code></dt>
19390
+ <dd> </dd>
19391
+ </dl></div>
19392
+ <details class="source">
19393
+ <summary>
19394
+ <span>Expand source code</span>
19395
+ </summary>
19396
+ <pre><code class="python">@property
19397
+ def video(self) -> typing.Union["Video", NoneType]:
19398
+ """Page.video
19399
+
19400
+ Video object associated with this page.
19401
+
19402
+ Returns
19403
+ -------
19404
+ Optional[Video]
19405
+ """
19406
+ return mapping.from_impl_nullable(self._impl_obj.video)</code></pre>
19407
+ </details>
19408
+ </dd>
19339
19409
<dt id="playwright.sync_api.Page.workers"><code class="name">var <span class="ident">workers</span> : List[<a title="playwright.async_api.Worker" href="async_api.html#playwright.async_api.Worker">Worker</a>]</code></dt>
19340
19410
<dd>
19341
19411
<div class="desc"><p>Page.workers</p>
@@ -24361,6 +24431,67 @@ <h2 id="parameters">Parameters</h2>
24361
24431
</dd>
24362
24432
</dl>
24363
24433
</dd>
24434
+ <dt id="playwright.sync_api.Video"><code class="flex name class">
24435
+ <span>class <span class="ident">Video</span></span>
24436
+ <span>(</span><span>obj: <a title="playwright.video.Video" href="video.html#playwright.video.Video">Video</a>)</span>
24437
+ </code></dt>
24438
+ <dd>
24439
+ <div class="desc"></div>
24440
+ <details class="source">
24441
+ <summary>
24442
+ <span>Expand source code</span>
24443
+ </summary>
24444
+ <pre><code class="python">class Video(SyncBase):
24445
+ def __init__(self, obj: VideoImpl):
24446
+ super().__init__(obj)
24447
+
24448
+ def path(self) -> str:
24449
+ """Video.path
24450
+
24451
+ Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context.
24452
+
24453
+ Returns
24454
+ -------
24455
+ str
24456
+ """
24457
+ return mapping.from_maybe_impl(self._sync(self._impl_obj.path()))</code></pre>
24458
+ </details>
24459
+ <h3>Ancestors</h3>
24460
+ <ul class="hlist">
24461
+ <li>playwright.sync_base.SyncBase</li>
24462
+ <li>playwright.impl_to_api_mapping.ImplWrapper</li>
24463
+ </ul>
24464
+ <h3>Methods</h3>
24465
+ <dl>
24466
+ <dt id="playwright.sync_api.Video.path"><code class="name flex">
24467
+ <span>def <span class="ident">path</span></span>(<span>self) ‑> str</span>
24468
+ </code></dt>
24469
+ <dd>
24470
+ <div class="desc"><p>Video.path</p>
24471
+ <p>Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context.</p>
24472
+ <h2 id="returns">Returns</h2>
24473
+ <dl>
24474
+ <dt><code>str</code></dt>
24475
+ <dd> </dd>
24476
+ </dl></div>
24477
+ <details class="source">
24478
+ <summary>
24479
+ <span>Expand source code</span>
24480
+ </summary>
24481
+ <pre><code class="python">def path(self) -> str:
24482
+ """Video.path
24483
+
24484
+ Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context.
24485
+
24486
+ Returns
24487
+ -------
24488
+ str
24489
+ """
24490
+ return mapping.from_maybe_impl(self._sync(self._impl_obj.path()))</code></pre>
24491
+ </details>
24492
+ </dd>
24493
+ </dl>
24494
+ </dd>
24364
24495
<dt id="playwright.sync_api.Worker"><code class="flex name class">
24365
24496
<span>class <span class="ident">Worker</span></span>
24366
24497
<span>(</span><span>obj: playwright.page.Worker)</span>
@@ -24914,6 +25045,7 @@ <h4><code><a title="playwright.sync_api.Page" href="#playwright.sync_api.Page">P
24914
25045
<li><code><a title="playwright.sync_api.Page.uncheck" href="#playwright.sync_api.Page.uncheck">uncheck</a></code></li>
24915
25046
<li><code><a title="playwright.sync_api.Page.unroute" href="#playwright.sync_api.Page.unroute">unroute</a></code></li>
24916
25047
<li><code><a title="playwright.sync_api.Page.url" href="#playwright.sync_api.Page.url">url</a></code></li>
25048
+ <li><code><a title="playwright.sync_api.Page.video" href="#playwright.sync_api.Page.video">video</a></code></li>
24917
25049
<li><code><a title="playwright.sync_api.Page.viewportSize" href="#playwright.sync_api.Page.viewportSize">viewportSize</a></code></li>
24918
25050
<li><code><a title="playwright.sync_api.Page.waitForEvent" href="#playwright.sync_api.Page.waitForEvent">waitForEvent</a></code></li>
24919
25051
<li><code><a title="playwright.sync_api.Page.waitForFunction" href="#playwright.sync_api.Page.waitForFunction">waitForFunction</a></code></li>
@@ -24987,6 +25119,12 @@ <h4><code><a title="playwright.sync_api.Selectors" href="#playwright.sync_api.Se
24987
25119
</ul>
24988
25120
</li>
24989
25121
<li>
25122
+ <h4><code><a title="playwright.sync_api.Video" href="#playwright.sync_api.Video">Video</a></code></h4>
25123
+ <ul class="">
25124
+ <li><code><a title="playwright.sync_api.Video.path" href="#playwright.sync_api.Video.path">path</a></code></li>
25125
+ </ul>
25126
+ </li>
25127
+ <li>
24990
25128
<h4><code><a title="playwright.sync_api.Worker" href="#playwright.sync_api.Worker">Worker</a></code></h4>
24991
25129
<ul class="">
24992
25130
<li><code><a title="playwright.sync_api.Worker.evaluate" href="#playwright.sync_api.Worker.evaluate">evaluate</a></code></li>
0 commit comments