Hi guys,

I need your help, I'm working on my vb.net application as I want to click the button on the webpage when i click on the form button, but I'm having a problem with click the button on the webpage as it will do nothing when i click on the form button.

When I try this:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

WebBrowser1.Document.GetElementById("xhpc_message").InnerText = TextBox1.Text

Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.All
For Each ClickOnElementButton As HtmlElement In htmlElements
    If ClickOnElementButton.GetAttribute("value") = "Post" Then
    End If
End Sub

Here is the html source:

<button value="1" class="_42ft _4jy0 _11b _4jy3 _4jy1 selected" type="submit">Post</button>
Does anyone know how I can click on the webpage button when i click on the form button?

I can't change the html source because i'm using facebook.

Thanks in advance