Navigate and Wait for navigation

Hello! I was wondreing if it is possible to use navigate to and wait for navigation and the same time?
Example :

BLOCK:PuppeteerOpenBrowser
ENDBLOCK

BLOCK:PuppeteerNavigateTo
  url = $"URL"
  referer = "EXAMPLE"
ENDBLOCK

BLOCK:PuppeteerWaitForNavigation
ENDBLOCK

BLOCK:PuppeteerGetDOM
  => VAR @puppeteerGetDOMOutput
ENDBLOCK

I need the page to fully load after i manually navigate to it(not redirect) and right after that get the page DOM. Thanks

In the Navigate To, put Network Idle 0 instead of Loaded. You could also add an additional 1-2 seconds delay using the delay block. Otherwise I suggest using the “Wait for Element” block.

1 Like

Thanks, alredy tried Network Idle, but it doesn’t work. Wait for element block is also not an option, since there is sometimes Recaptcha,when you open the website, so there is no such element.

Then I suggest hardcoding a delay at this point

I will do that, thanks

Installed stable version of Chromium and it worked! Must have been a bug in the latest build.

1 Like