最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Navigation failed because page crashed! JavaScript Playwright - Stack Overflow

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论