Skip to content

Commit 809727d

Browse files
authored
feat(roll): roll Playwright to 1.13.0-next-1626254028000 (#805)
1 parent 7640f90 commit 809727d

File tree

6 files changed

+65
-25
lines changed

6 files changed

+65
-25
lines changed

playwright/_impl/_api_structures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ class SecurityDetails(TypedDict):
130130
issuer: Optional[str]
131131
protocol: Optional[str]
132132
subjectName: Optional[str]
133-
validFrom: Optional[int]
134-
validTo: Optional[int]
133+
validFrom: Optional[float]
134+
validTo: Optional[float]

playwright/_impl/_frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ async def is_editable(self, selector: str, timeout: float = None) -> bool:
278278
async def is_enabled(self, selector: str, timeout: float = None) -> bool:
279279
return await self._channel.send("isEnabled", locals_to_params(locals()))
280280

281-
async def is_hidden(self, selector: str) -> bool:
281+
async def is_hidden(self, selector: str, timeout: float = None) -> bool:
282282
return await self._channel.send("isHidden", locals_to_params(locals()))
283283

284-
async def is_visible(self, selector: str) -> bool:
284+
async def is_visible(self, selector: str, timeout: float = None) -> bool:
285285
return await self._channel.send("isVisible", locals_to_params(locals()))
286286

287287
async def dispatch_event(

playwright/_impl/_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ async def is_editable(self, selector: str, timeout: float = None) -> bool:
339339
async def is_enabled(self, selector: str, timeout: float = None) -> bool:
340340
return await self._main_frame.is_enabled(**locals_to_params(locals()))
341341

342-
async def is_hidden(self, selector: str) -> bool:
342+
async def is_hidden(self, selector: str, timeout: float = None) -> bool:
343343
return await self._main_frame.is_hidden(**locals_to_params(locals()))
344344

345-
async def is_visible(self, selector: str) -> bool:
345+
async def is_visible(self, selector: str, timeout: float = None) -> bool:
346346
return await self._main_frame.is_visible(**locals_to_params(locals()))
347347

348348
async def dispatch_event(

playwright/async_api/_generated.py

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ async def security_details(self) -> typing.Optional[SecurityDetails]:
404404
405405
Returns
406406
-------
407-
Union[{issuer: Union[str, NoneType], protocol: Union[str, NoneType], subjectName: Union[str, NoneType], validFrom: Union[int, NoneType], validTo: Union[int, NoneType]}, NoneType]
407+
Union[{issuer: Union[str, NoneType], protocol: Union[str, NoneType], subjectName: Union[str, NoneType], validFrom: Union[float, NoneType], validTo: Union[float, NoneType]}, NoneType]
408408
"""
409409

410410
return mapping.from_impl_nullable(
@@ -3283,7 +3283,7 @@ async def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
32833283
)
32843284
)
32853285

3286-
async def is_hidden(self, selector: str) -> bool:
3286+
async def is_hidden(self, selector: str, *, timeout: float = None) -> bool:
32873287
"""Frame.is_hidden
32883288
32893289
Returns whether the element is hidden, the opposite of [visible](./actionability.md#visible). `selector` that does not
@@ -3294,6 +3294,9 @@ async def is_hidden(self, selector: str) -> bool:
32943294
selector : str
32953295
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
32963296
[working with selectors](./selectors.md) for more details.
3297+
timeout : Union[float, NoneType]
3298+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
3299+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
32973300
32983301
Returns
32993302
-------
@@ -3302,11 +3305,12 @@ async def is_hidden(self, selector: str) -> bool:
33023305

33033306
return mapping.from_maybe_impl(
33043307
await self._async(
3305-
"frame.is_hidden", self._impl_obj.is_hidden(selector=selector)
3308+
"frame.is_hidden",
3309+
self._impl_obj.is_hidden(selector=selector, timeout=timeout),
33063310
)
33073311
)
33083312

3309-
async def is_visible(self, selector: str) -> bool:
3313+
async def is_visible(self, selector: str, *, timeout: float = None) -> bool:
33103314
"""Frame.is_visible
33113315
33123316
Returns whether the element is [visible](./actionability.md#visible). `selector` that does not match any elements is
@@ -3317,6 +3321,9 @@ async def is_visible(self, selector: str) -> bool:
33173321
selector : str
33183322
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
33193323
[working with selectors](./selectors.md) for more details.
3324+
timeout : Union[float, NoneType]
3325+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
3326+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
33203327
33213328
Returns
33223329
-------
@@ -3325,7 +3332,8 @@ async def is_visible(self, selector: str) -> bool:
33253332

33263333
return mapping.from_maybe_impl(
33273334
await self._async(
3328-
"frame.is_visible", self._impl_obj.is_visible(selector=selector)
3335+
"frame.is_visible",
3336+
self._impl_obj.is_visible(selector=selector, timeout=timeout),
33293337
)
33303338
)
33313339

@@ -5455,7 +5463,7 @@ async def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
54555463
)
54565464
)
54575465

5458-
async def is_hidden(self, selector: str) -> bool:
5466+
async def is_hidden(self, selector: str, *, timeout: float = None) -> bool:
54595467
"""Page.is_hidden
54605468
54615469
Returns whether the element is hidden, the opposite of [visible](./actionability.md#visible). `selector` that does not
@@ -5466,6 +5474,9 @@ async def is_hidden(self, selector: str) -> bool:
54665474
selector : str
54675475
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
54685476
[working with selectors](./selectors.md) for more details.
5477+
timeout : Union[float, NoneType]
5478+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
5479+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
54695480
54705481
Returns
54715482
-------
@@ -5474,11 +5485,12 @@ async def is_hidden(self, selector: str) -> bool:
54745485

54755486
return mapping.from_maybe_impl(
54765487
await self._async(
5477-
"page.is_hidden", self._impl_obj.is_hidden(selector=selector)
5488+
"page.is_hidden",
5489+
self._impl_obj.is_hidden(selector=selector, timeout=timeout),
54785490
)
54795491
)
54805492

5481-
async def is_visible(self, selector: str) -> bool:
5493+
async def is_visible(self, selector: str, *, timeout: float = None) -> bool:
54825494
"""Page.is_visible
54835495
54845496
Returns whether the element is [visible](./actionability.md#visible). `selector` that does not match any elements is
@@ -5489,6 +5501,9 @@ async def is_visible(self, selector: str) -> bool:
54895501
selector : str
54905502
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
54915503
[working with selectors](./selectors.md) for more details.
5504+
timeout : Union[float, NoneType]
5505+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
5506+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
54925507
54935508
Returns
54945509
-------
@@ -5497,7 +5512,8 @@ async def is_visible(self, selector: str) -> bool:
54975512

54985513
return mapping.from_maybe_impl(
54995514
await self._async(
5500-
"page.is_visible", self._impl_obj.is_visible(selector=selector)
5515+
"page.is_visible",
5516+
self._impl_obj.is_visible(selector=selector, timeout=timeout),
55015517
)
55025518
)
55035519

playwright/sync_api/_generated.py

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def security_details(self) -> typing.Optional[SecurityDetails]:
404404
405405
Returns
406406
-------
407-
Union[{issuer: Union[str, NoneType], protocol: Union[str, NoneType], subjectName: Union[str, NoneType], validFrom: Union[int, NoneType], validTo: Union[int, NoneType]}, NoneType]
407+
Union[{issuer: Union[str, NoneType], protocol: Union[str, NoneType], subjectName: Union[str, NoneType], validFrom: Union[float, NoneType], validTo: Union[float, NoneType]}, NoneType]
408408
"""
409409

410410
return mapping.from_impl_nullable(
@@ -3261,7 +3261,7 @@ def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
32613261
)
32623262
)
32633263

3264-
def is_hidden(self, selector: str) -> bool:
3264+
def is_hidden(self, selector: str, *, timeout: float = None) -> bool:
32653265
"""Frame.is_hidden
32663266
32673267
Returns whether the element is hidden, the opposite of [visible](./actionability.md#visible). `selector` that does not
@@ -3272,17 +3272,23 @@ def is_hidden(self, selector: str) -> bool:
32723272
selector : str
32733273
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
32743274
[working with selectors](./selectors.md) for more details.
3275+
timeout : Union[float, NoneType]
3276+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
3277+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
32753278
32763279
Returns
32773280
-------
32783281
bool
32793282
"""
32803283

32813284
return mapping.from_maybe_impl(
3282-
self._sync("frame.is_hidden", self._impl_obj.is_hidden(selector=selector))
3285+
self._sync(
3286+
"frame.is_hidden",
3287+
self._impl_obj.is_hidden(selector=selector, timeout=timeout),
3288+
)
32833289
)
32843290

3285-
def is_visible(self, selector: str) -> bool:
3291+
def is_visible(self, selector: str, *, timeout: float = None) -> bool:
32863292
"""Frame.is_visible
32873293
32883294
Returns whether the element is [visible](./actionability.md#visible). `selector` that does not match any elements is
@@ -3293,14 +3299,20 @@ def is_visible(self, selector: str) -> bool:
32933299
selector : str
32943300
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
32953301
[working with selectors](./selectors.md) for more details.
3302+
timeout : Union[float, NoneType]
3303+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
3304+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
32963305
32973306
Returns
32983307
-------
32993308
bool
33003309
"""
33013310

33023311
return mapping.from_maybe_impl(
3303-
self._sync("frame.is_visible", self._impl_obj.is_visible(selector=selector))
3312+
self._sync(
3313+
"frame.is_visible",
3314+
self._impl_obj.is_visible(selector=selector, timeout=timeout),
3315+
)
33043316
)
33053317

33063318
def dispatch_event(
@@ -5417,7 +5429,7 @@ def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
54175429
)
54185430
)
54195431

5420-
def is_hidden(self, selector: str) -> bool:
5432+
def is_hidden(self, selector: str, *, timeout: float = None) -> bool:
54215433
"""Page.is_hidden
54225434
54235435
Returns whether the element is hidden, the opposite of [visible](./actionability.md#visible). `selector` that does not
@@ -5428,17 +5440,23 @@ def is_hidden(self, selector: str) -> bool:
54285440
selector : str
54295441
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
54305442
[working with selectors](./selectors.md) for more details.
5443+
timeout : Union[float, NoneType]
5444+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
5445+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
54315446
54325447
Returns
54335448
-------
54345449
bool
54355450
"""
54365451

54375452
return mapping.from_maybe_impl(
5438-
self._sync("page.is_hidden", self._impl_obj.is_hidden(selector=selector))
5453+
self._sync(
5454+
"page.is_hidden",
5455+
self._impl_obj.is_hidden(selector=selector, timeout=timeout),
5456+
)
54395457
)
54405458

5441-
def is_visible(self, selector: str) -> bool:
5459+
def is_visible(self, selector: str, *, timeout: float = None) -> bool:
54425460
"""Page.is_visible
54435461
54445462
Returns whether the element is [visible](./actionability.md#visible). `selector` that does not match any elements is
@@ -5449,14 +5467,20 @@ def is_visible(self, selector: str) -> bool:
54495467
selector : str
54505468
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
54515469
[working with selectors](./selectors.md) for more details.
5470+
timeout : Union[float, NoneType]
5471+
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
5472+
using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
54525473
54535474
Returns
54545475
-------
54555476
bool
54565477
"""
54575478

54585479
return mapping.from_maybe_impl(
5459-
self._sync("page.is_visible", self._impl_obj.is_visible(selector=selector))
5480+
self._sync(
5481+
"page.is_visible",
5482+
self._impl_obj.is_visible(selector=selector, timeout=timeout),
5483+
)
54605484
)
54615485

54625486
def dispatch_event(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
InWheel = None
2929
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand
3030

31-
driver_version = "1.13.0-next-1625812834000"
31+
driver_version = "1.13.0-next-1626254028000"
3232

3333

3434
def extractall(zip: zipfile.ZipFile, path: str) -> None:

0 commit comments

Comments
 (0)