Rank: Newbie Groups: Member
Joined: 10/14/2020 Posts: 9
|
I am wondering how to implement a check of the HTML retrieved by the WebView to ensure it is truly loaded (by checking for a string, tag etc) before the control decides it is loaded.
If it is not possible to do this before the state is set as loaded then to reenter the same html session (for want of a better expression) to continue receiving more of the page?
Basically looking for a mechanism to incorporate a check (for string, tag etc) before page is deemed loaded.
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
There are multiples ways to do it. You can handle the WebView.LoadCompleted event, or you can use webView.LoadUrlAndWait. The first option is non-blocking and the second option is blocking.
Thanks!
|