How to manipulate a webpages content do things like auto-login, form filling, locating elements and executing clicks.
This is the quickest way at this current time to do this and its a very simple replacement for any code you already use. For example if you added a webbrowser control to a form and wanted it to goto a specific page you would use:
Code: Select all
WebBrowser1.Navigate("www.site.com")
Code: Select all
CType(Parent.FindForm.Controls(MainPanel).Controls(WebPanel).Controls.Item(0).Controls(Browser), WebBrowser).Navigate("www.site.com")
Code: Select all
For Each ImageLink As HtmlElement In WebBrowser1.Document.Images
Listbox1.items.add(ImageLink.GetAttribute("src"))
Next
Code: Select all
For Each ImageLink As HtmlElement In CType(Parent.FindForm.Controls(MainPanel).Controls(WebPanel).Controls.Item(0).Controls(Browser), WebBrowser).Document.Images
Listbox1.items.add(ImageLink.GetAttribute("src"))
Next
And thats all their is to it. All you do is change "WebBrowser1" in your code to this:
Code: Select all
CType(Parent.FindForm.Controls(MainPanel).Controls(WebPanel).Controls.Item(0).Controls(Browser), WebBrowser)
Remember this code WILL change on final release so keep your source-code so you can make any changes later otherwise any add-ins you make wont work when V3R is released properly :?