@@ -1390,8 +1390,11 @@ class BrowserManager {
13901390 this . _wsInitSuccess = false ;
13911391 this . _wsInitFailed = false ;
13921392
1393- // Refresh the page and re-handle popups
1394- await this . page . reload ( { waitUntil : "domcontentloaded" } ) ;
1393+ // Navigate to target page again
1394+ await this . page . goto ( targetUrl , {
1395+ timeout : 180000 ,
1396+ waitUntil : "domcontentloaded" ,
1397+ } ) ;
13951398 await this . page . waitForTimeout ( 2000 ) ;
13961399
13971400 // Handle various popups (Cookie consent, Got it, Onboarding, etc.)
@@ -1547,8 +1550,11 @@ class BrowserManager {
15471550 this . _wsInitSuccess = false ;
15481551 this . _wsInitFailed = false ;
15491552
1550- // Refresh the page and re-handle popups
1551- await this . page . reload ( { waitUntil : "domcontentloaded" } ) ;
1553+ // Navigate to target page again
1554+ await this . page . goto ( targetUrl , {
1555+ timeout : 180000 ,
1556+ waitUntil : "domcontentloaded" ,
1557+ } ) ;
15521558 await this . page . waitForTimeout ( 2000 ) ;
15531559
15541560 // Handle various popups (Cookie consent, Got it, Onboarding, etc.)
0 commit comments