Is there a way let distill wait a second or 2 for the page to load?

Costco is selling gold bars : )

We’d like to get 1 but they sell out quick.

This is the page: https://www.costco.com/1-oz-gold-bar-pamp-suisse-lady-fortuna-veriscan-new-in-assay.product.4000186760.html

I am logged in to costco on the machine. The page loads then another page loads saying no product available. Is there a way to get it to wait a second or 2 before looking at the final page?

1 Like

Hi @profrabinow

Firstly, welcome to Distill’s forums!

Please refer to the section on How to wait for a page to finish loading before extracting content? in our documentation at Config and Advanced Options – Distill

Hope that helps!

Cheers,
Surya

1 Like

Were you able to get this to work? When I have it set to a delay of 20 seconds and monitor the full page it is indicating a change on every refresh, even though there is no change. I tried selecting the “product not found” section but for some reason when this went live it didn’t indicate a change.

Hello John, one of the ideas when monitoring an element that is going to be removed is to add the page’s title to the list of selected elements. It can be done by adding following selectors:

CSS: title
XPath: //title

Let me know if you have any questions or need any help. Cheers!