@@ -197,7 +197,7 @@ async def evaluate_handle(
197
197
self , expression : str , arg : Serializable = None , timeout : float = None
198
198
) -> "JSHandle" :
199
199
return await self ._with_element (
200
- lambda h , o : h .evaluate_handle (expression , arg ), timeout
200
+ lambda h , _ : h .evaluate_handle (expression , arg ), timeout
201
201
)
202
202
203
203
async def fill (
@@ -518,7 +518,9 @@ async def screenshot(
518
518
) -> bytes :
519
519
params = locals_to_params (locals ())
520
520
return await self ._with_element (
521
- lambda h , timeout : h .screenshot (timeout = timeout , ** params )
521
+ lambda h , timeout : h .screenshot (
522
+ ** {** params , "timeout" : timeout }, # type: ignore
523
+ ),
522
524
)
523
525
524
526
async def scroll_into_view_if_needed (
@@ -550,7 +552,7 @@ async def select_option(
550
552
async def select_text (self , force : bool = None , timeout : float = None ) -> None :
551
553
params = locals_to_params (locals ())
552
554
return await self ._with_element (
553
- lambda h , timeout : h .select_text (timeout = timeout , ** params ), timeout
555
+ lambda h , timeout : h .select_text (** { ** params , "timeout" : timeout } ), timeout # type: ignore
554
556
)
555
557
556
558
async def set_input_files (
0 commit comments