Hi im trying to click on a button within a webbrowser control.. to close a ad in a iframe
wich i have no access to my code works on first page but not on second page
heres my Code
Dim theElementCollection12 As Windows.Forms.HtmlElementCollection
theElementCollection12 = WebBrowser1.Document.GetElementsByTagName("a")
For Each curElement As HtmlElement In theElementCollection12
curElement.InvokeMember("OnClick")
Next
Im trying to simulate click on the X to close adbanner..
Please Help.. Thank You..