@@ -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
0 commit comments