Commit ac55d77
committed
Fix intermittent Puppeteer session test failure with context safety checks
- Added safety checks for browser context existence before restoring session
- Added try-catch wrapper to handle page restoration failures gracefully
- Reset context-related variables (context, contextLocator) after session restore
- Matches safety improvements from Playwright helper (lines 1048-1069)
- Fixes 'Argument should belong to the same JavaScript world' protocol error1 parent 20c4ff6 commit ac55d77
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | | - | |
441 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
442 | 460 | | |
443 | 461 | | |
444 | 462 | | |
| |||
0 commit comments