Hi folks,
I have a link that leads to the next page:
const myLink = page.locator(‘//*[@id=“my_reports-link”]’);
await Promise.all([page.waitForNavigation(), myLink.click()]);
page.waitForSelector(‘#myObjectOnNextPage’);
Looking good, right?
But I got errors:
ERRO[0030] communicating with browser: read tcp 127.0.0.1:16231->127.0.0.1:16230: wsarecv: An existing connection was forcibly closed by the remote host. category=cdp elapsed=“0 ms” goroutine=55
ERRO[0031] process with PID 4960 unexpectedly ended: exit status 1 category=browser elapsed=“75 ms” goroutine=37
ERRO[0036] Uncaught (in promise) waiting for navigation: timed out after 30s
In browser I can see that the click was successful. The next page is loaded, and myObjectOnNextPage is visible.
The browser waited until 30sec is up.
Could you please shed some light on this?
Thanks,
-Madison