Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27124

VS 2010 WebBrowser Button Click?

$
0
0
So, I need to have a WebBrowser press the "Confirm" button on a web page.

This is the HTML of the button : <input type="submit" value="Confirm">

As the button does not have a ID or Name, how would I have it press the button?


What I have tried :
-Browser.Document.All("submit").InvokeMember("click")
-Browser.Document.All("confirm").InvokeMember("click")
- For Each elem As HtmlElement In WebBrowser1.Document.All
If elem.InnerText = "Confirm" Then
'Invoke your event
elem.InvokeMember("click")
End If
Next



Thanks,
Jason

Viewing all articles
Browse latest Browse all 27124

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>