If I have
browser.Navigate("http://www.test.com");
In a method, how can I check if it has loaded the webpage from within the same method?
Thanks.
To check if it's loaded wherever, do:
if(browser.ReadyState == WebBrowserReadyState.Complete) {
// It's done!
}
However, if you're waiting for it to load, handle the DocumentCompleted event instead:
browser.DocumentCompleted += WhenItsDone;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With