Wait for JavaScript code with Hound

Hey, I’m working on scraper for this site: https://www.breeze.ca.gov
As you can see in first request there are some redirects.
In one of them we got a page with JavaScript code that do something with session and one more time starts redirect.
I can’t use just a &Process.sleep/1, so I want to wait until this process is done.
Can you help me with it?

ping: @HashNuke

1 Like

If you’re being redirected, is it possible to ping the current browser location until it’s at the destination you expect?

1 Like

@jeffdeville: not in all cases and not in current case
In this page we have redirect to another page that redirects to self, so we could catch it too fast :confused:
I want to check if final page is fully loaded - only final page fetches other resources (like scripts and styles).

1 Like