- Joined
- Jul 23, 2009
- Posts
- 263
- Reaction score
- 69
- Points
- 108
I know I can do
to wait after a webbrowser.Navigate.
Is there a way to wait for the webbrowser after clicking a link like so?
The code above doesn't work because some elements load and trigger the ReadyState.Complete before the whole webpage is loaded. I'm currently using timers, but I'd like a more reliable way if possible.
Code:
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
Is there a way to wait for the webbrowser after clicking a link like so?
Code:
webBrowser1.Document.GetElementById().InvokeMember("click");