File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -354,17 +354,6 @@ async def _wait_page_load(self, timeout: int = 300):
354354 page_events_auto_enabled = True
355355 await self .enable_page_events ()
356356
357- dom_loaded = asyncio .Event ()
358- await self .on (
359- PageEvents .DOM_CONTENT_LOADED ,
360- lambda _ : dom_loaded .set (),
361- temporary = True ,
362- )
363- try :
364- await asyncio .wait_for (dom_loaded .wait (), timeout = timeout )
365- except asyncio .TimeoutError :
366- pass
367-
368357 page_loaded = asyncio .Event ()
369358 await self .on (
370359 PageEvents .PAGE_LOADED ,
@@ -373,7 +362,7 @@ async def _wait_page_load(self, timeout: int = 300):
373362 )
374363
375364 try :
376- await asyncio .wait_for (page_loaded .wait (), timeout = 5 )
365+ await asyncio .wait_for (page_loaded .wait (), timeout = timeout )
377366 except asyncio .TimeoutError :
378367 pass
379368
You can’t perform that action at this time.
0 commit comments