@@ -404,7 +404,7 @@ async def security_details(self) -> typing.Optional[SecurityDetails]:
404
404
405
405
Returns
406
406
-------
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]
408
408
"""
409
409
410
410
return mapping .from_impl_nullable (
@@ -3283,7 +3283,7 @@ async def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
3283
3283
)
3284
3284
)
3285
3285
3286
- async def is_hidden (self , selector : str ) -> bool :
3286
+ async def is_hidden (self , selector : str , * , timeout : float = None ) -> bool :
3287
3287
"""Frame.is_hidden
3288
3288
3289
3289
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:
3294
3294
selector : str
3295
3295
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
3296
3296
[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.
3297
3300
3298
3301
Returns
3299
3302
-------
@@ -3302,11 +3305,12 @@ async def is_hidden(self, selector: str) -> bool:
3302
3305
3303
3306
return mapping .from_maybe_impl (
3304
3307
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 ),
3306
3310
)
3307
3311
)
3308
3312
3309
- async def is_visible (self , selector : str ) -> bool :
3313
+ async def is_visible (self , selector : str , * , timeout : float = None ) -> bool :
3310
3314
"""Frame.is_visible
3311
3315
3312
3316
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:
3317
3321
selector : str
3318
3322
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
3319
3323
[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.
3320
3327
3321
3328
Returns
3322
3329
-------
@@ -3325,7 +3332,8 @@ async def is_visible(self, selector: str) -> bool:
3325
3332
3326
3333
return mapping .from_maybe_impl (
3327
3334
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 ),
3329
3337
)
3330
3338
)
3331
3339
@@ -5455,7 +5463,7 @@ async def is_enabled(self, selector: str, *, timeout: float = None) -> bool:
5455
5463
)
5456
5464
)
5457
5465
5458
- async def is_hidden (self , selector : str ) -> bool :
5466
+ async def is_hidden (self , selector : str , * , timeout : float = None ) -> bool :
5459
5467
"""Page.is_hidden
5460
5468
5461
5469
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:
5466
5474
selector : str
5467
5475
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
5468
5476
[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.
5469
5480
5470
5481
Returns
5471
5482
-------
@@ -5474,11 +5485,12 @@ async def is_hidden(self, selector: str) -> bool:
5474
5485
5475
5486
return mapping .from_maybe_impl (
5476
5487
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 ),
5478
5490
)
5479
5491
)
5480
5492
5481
- async def is_visible (self , selector : str ) -> bool :
5493
+ async def is_visible (self , selector : str , * , timeout : float = None ) -> bool :
5482
5494
"""Page.is_visible
5483
5495
5484
5496
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:
5489
5501
selector : str
5490
5502
A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See
5491
5503
[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.
5492
5507
5493
5508
Returns
5494
5509
-------
@@ -5497,7 +5512,8 @@ async def is_visible(self, selector: str) -> bool:
5497
5512
5498
5513
return mapping .from_maybe_impl (
5499
5514
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 ),
5501
5517
)
5502
5518
)
5503
5519
0 commit comments