Page 1 of 1

Re: Does not always work event OnLoadingStateChange

Posted: Thu Mar 01, 2018 11:11 am
by salvadordf

Re: Does not always work event OnLoadingStateChange

Posted: Thu Mar 01, 2018 1:18 pm
by salvadordf
I'm sorry but the best solution I can give is to use the TChromium.OnLoadEnd event.

The easier solution would be to define the "loading" state as the time spent by the main frame between the TChromium.OnLoadStart and TChromium.OnLoadEnd events. You can check frame.IsMain in those events.

An alternative "loading" definition would be : the time it takes to load all the frames. You can store the frame.GetIdentifier of all the frames that trigger the TChromium.OnLoadStart event and check those identifiers in the TChromium.OnLoadEnd or TChromium.OnLoadError events.