Page 1 of 1
Re: How to wait for fully website loaded, including iframes?
Posted: Sun Nov 19, 2017 9:26 am
by salvadordf
Hi,
You can use the TChromium.OnLoadingStateChange event and check the isLoading parameter.
Re: How to wait for fully website loaded, including iframes?
Posted: Fri Apr 17, 2020 8:37 am
by Zjm-VIP
i have used the TChromium.OnLoadingStateChange event and check the isLoading parameter.
but i Found the isLoading parameter alwaly is true;
Re: How to wait for fully website loaded, including iframes?
Posted: Sat Apr 18, 2020 9:26 am
by salvadordf
That's probably caused by a resource that never finishes loading.
You can also check if the main document is fully loaded if you use the TChromium.OnLoadEnd event and check frame.IsMain. You can improve this if you keep a list of frames that started downloading and compare it with the frames that reach TChromium.OnLoadEnd.
However, all this might not work if the web page you need is trying to load something from a slow server.
There are many web pages that add content dynamically and they never finish loading.
Search for "infinite scroll web page" to know more details.
Re: How to wait for fully website loaded, including iframes?
Posted: Thu Apr 23, 2020 6:17 am
by Zjm-VIP
谢谢您的耐心解答