I am trying to go to a secondary URL after an action is pleted on the first page on playwright, everytime I go to the secondary page the error
UnhandledPromiseRejectionWarning: page.goto: Navigation failed because page crashed
=========================== logs ===========================
navigating to ";, waiting until "load"
============================================================
my code is
await page.goto('');
await sleep(10000);
await page.goto('');
console.log("Passed this!");
I am trying to go to a secondary URL after an action is pleted on the first page on playwright, everytime I go to the secondary page the error
UnhandledPromiseRejectionWarning: page.goto: Navigation failed because page crashed
=========================== logs ===========================
navigating to "https://google.", waiting until "load"
============================================================
my code is
await page.goto('https://youtube.');
await sleep(10000);
await page.goto('https://google.');
console.log("Passed this!");
Share
Improve this question
edited Jan 15, 2021 at 6:13
Nick
147k23 gold badges66 silver badges105 bronze badges
asked Jan 15, 2021 at 6:11
SimplePhotosSimplePhotos
471 silver badge5 bronze badges
2 Answers
Reset to default 3The "Navigation failed because page crashed" error can also be produced if the system Playwright is running on runs out of available RAM.
its just the page timeout. Just do await page.setDefaultTimeout(55555) or something
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745486787a4629803.html
评论列表(0条)