Navigation failed because page crashed! JavaScript Playwright - Stack Overflow

I am trying to go to a secondary URL after an action is pleted on the first page on playwright, everyti

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
Add a ment  | 

2 Answers 2

Reset to default 3

The "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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信