private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
for (int i = 0; i < urlLinks.Count; i++)
{
string NavigateUrl = "http://abc.co.in" + urlLinks[i].ToString();
webBrowser1.AllowNavigation = true;
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Navigate(NavigateUrl);
HtmlElement htm = webBrowser1.Document.Body;
}
}
I have above code where I loop through urls and read through the content however when loop through it does not navigate to other url, it only loads first url throughout the loop.Is there any way to make webbrowser navigate to all the list of url. I think it is happening as for loop is much faster. I also tried to chek if e.Url.ToString() and urlLinks[0].ToString() is same but still it does not make any difference to the output. I get the result for number of times it loops.
Any help would be appreciated.