So im using this function to go to websites
it loads login cookie from a site and then goes to the link that I want it to eg like this
My question is how do I then get a HtmlElementCollection from the site I just went to...
similarly to how you can get the following HtmlElementCollection from a webbrower as show bellow
Thanks In Advance Sincerely John
Code:
Function Website(ByVal Link As String, ByRef Cookie As CookieContainer)
Dim request As HttpWebRequest = DirectCast(WebRequest.Create(Link), HttpWebRequest)
request.CookieContainer = Cookie
Dim response As HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse)
Return 0
End Function
Code:
Website("www.gohere.com", LoginCookie)
similarly to how you can get the following HtmlElementCollection from a webbrower as show bellow
Code:
Dim PageElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a")