Zach Schulze
Zach Schulze

Reputation: 314

cefSharp Detect when entire page is loaded

I need to be able to detect when an entire page is loaded. The page has JavaScript that executes when you browse to it as well. And I must wait for that to finish loading as it adds HTML Elements to the page.

I have tried the below event. But this is trigger when the main page loads and doesn't care about the javascript.

 browser.LoadingStateChanged 

So I also tried count these to know when all the frames on a page where loaded. But it still wasn't spot on.

 browser.FrameLoadStart += OnFrameLoadStart;
 browser.FrameLoadEnd += OnFrameLoadEnd;

Any suggestions

Upvotes: 1

Views: 6920

Answers (1)

Zach Schulze
Zach Schulze

Reputation: 314

Ended up using javascript to wait for element to display and then continue

Upvotes: 3

Related Questions