@@ -66,51 +66,45 @@ def as_element(self) -> Optional["ElementHandle"]:
6666 return self
6767
6868 async def owner_frame (self ) -> Optional ["Frame" ]:
69- return from_nullable_channel (
70- await self ._channel .send ("ownerFrame" , self ._frame ._timeout )
71- )
69+ return from_nullable_channel (await self ._channel .send ("ownerFrame" , None ))
7270
7371 async def content_frame (self ) -> Optional ["Frame" ]:
74- return from_nullable_channel (
75- await self ._channel .send ("contentFrame" , self ._frame ._timeout )
76- )
72+ return from_nullable_channel (await self ._channel .send ("contentFrame" , None ))
7773
7874 async def get_attribute (self , name : str ) -> Optional [str ]:
79- return await self ._channel .send (
80- "getAttribute" , self ._frame ._timeout , dict (name = name )
81- )
75+ return await self ._channel .send ("getAttribute" , None , dict (name = name ))
8276
8377 async def text_content (self ) -> Optional [str ]:
84- return await self ._channel .send ("textContent" , self . _frame . _timeout )
78+ return await self ._channel .send ("textContent" , None )
8579
8680 async def inner_text (self ) -> str :
87- return await self ._channel .send ("innerText" , self . _frame . _timeout )
81+ return await self ._channel .send ("innerText" , None )
8882
8983 async def inner_html (self ) -> str :
90- return await self ._channel .send ("innerHTML" , self . _frame . _timeout )
84+ return await self ._channel .send ("innerHTML" , None )
9185
9286 async def is_checked (self ) -> bool :
93- return await self ._channel .send ("isChecked" , self . _frame . _timeout )
87+ return await self ._channel .send ("isChecked" , None )
9488
9589 async def is_disabled (self ) -> bool :
96- return await self ._channel .send ("isDisabled" , self . _frame . _timeout )
90+ return await self ._channel .send ("isDisabled" , None )
9791
9892 async def is_editable (self ) -> bool :
99- return await self ._channel .send ("isEditable" , self . _frame . _timeout )
93+ return await self ._channel .send ("isEditable" , None )
10094
10195 async def is_enabled (self ) -> bool :
102- return await self ._channel .send ("isEnabled" , self . _frame . _timeout )
96+ return await self ._channel .send ("isEnabled" , None )
10397
10498 async def is_hidden (self ) -> bool :
105- return await self ._channel .send ("isHidden" , self . _frame . _timeout )
99+ return await self ._channel .send ("isHidden" , None )
106100
107101 async def is_visible (self ) -> bool :
108- return await self ._channel .send ("isVisible" , self . _frame . _timeout )
102+ return await self ._channel .send ("isVisible" , None )
109103
110104 async def dispatch_event (self , type : str , eventInit : Dict = None ) -> None :
111105 await self ._channel .send (
112106 "dispatchEvent" ,
113- self . _frame . _timeout ,
107+ None ,
114108 dict (type = type , eventInit = serialize_argument (eventInit )),
115109 )
116110
@@ -238,7 +232,7 @@ async def set_input_files(
238232 )
239233
240234 async def focus (self ) -> None :
241- await self ._channel .send ("focus" , self . _frame . _timeout )
235+ await self ._channel .send ("focus" , None )
242236
243237 async def type (
244238 self ,
@@ -311,7 +305,7 @@ async def uncheck(
311305 )
312306
313307 async def bounding_box (self ) -> Optional [FloatRect ]:
314- return await self ._channel .send ("boundingBox" , self . _frame . _timeout )
308+ return await self ._channel .send ("boundingBox" , None )
315309
316310 async def screenshot (
317311 self ,
@@ -353,17 +347,15 @@ async def screenshot(
353347
354348 async def query_selector (self , selector : str ) -> Optional ["ElementHandle" ]:
355349 return from_nullable_channel (
356- await self ._channel .send (
357- "querySelector" , self ._frame ._timeout , dict (selector = selector )
358- )
350+ await self ._channel .send ("querySelector" , None , dict (selector = selector ))
359351 )
360352
361353 async def query_selector_all (self , selector : str ) -> List ["ElementHandle" ]:
362354 return list (
363355 map (
364356 cast (Callable [[Any ], Any ], from_nullable_channel ),
365357 await self ._channel .send (
366- "querySelectorAll" , self . _frame . _timeout , dict (selector = selector )
358+ "querySelectorAll" , None , dict (selector = selector )
367359 ),
368360 )
369361 )
@@ -377,7 +369,7 @@ async def eval_on_selector(
377369 return parse_result (
378370 await self ._channel .send (
379371 "evalOnSelector" ,
380- self . _frame . _timeout ,
372+ None ,
381373 dict (
382374 selector = selector ,
383375 expression = expression ,
@@ -395,7 +387,7 @@ async def eval_on_selector_all(
395387 return parse_result (
396388 await self ._channel .send (
397389 "evalOnSelectorAll" ,
398- self . _frame . _timeout ,
390+ None ,
399391 dict (
400392 selector = selector ,
401393 expression = expression ,
0 commit comments