Is there any way to navigate web pages, create .Document.getElementById(" ")
requests without the need to use the WebBrowser()
component on my form?
WebBrowser browser = new WebBrowser();
browser.Navigate("http://");
//[...]
var valor = browser.Document.getElementById("");
Ideally perform the navigations and requisitions, without the need of the system perform the rendering of the web page.
The idea is to get pages loaded as fast as possible , to access a very large and sequential number of pages, retrieving your information in specific IDs.
In addition, is there any way to expect full page loading to be performed before creating the getElementById
request, without using (for WebBrowser
):
while (browser.ReadyState != WebBrowserReadyState.Complete) {
Application.DoEvents();
}