helder ventura
Newbie
- Sep 14, 2016
- 4
- 0
Hi hello every one.
I have try multiple times to get it work in different ways but none of the i have try work
This is the button i try to click
and this is my code to perform the click
I have try multiple times to get it work in different ways but none of the i have try work
This is the button i try to click
Code:
<button type="submit" name="B5" style="height: 20; background-color: #FFFF00; width:20" onclick="submitform(2);"></button>
and this is my code to perform the click
Code:
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
B5 = WebBrowser1.Document.GetElementById("B5")
CheckButton = WebBrowser1.Document.GetElementById("B5")
If Not B5 Is Nothing Then
B5.SetAttribute("value", "B5")
'skip_button.InnerText = "skip_ad_button" 'Replace testID by the ID you want
WebBrowser1.Document.GetElementById("B5").InvokeMember("click")
End If
If Not CheckButton Is Nothing Then
'some code here
End If
For Each element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("div")
If element.InnerText = "B5" Then
element.InvokeMember("click")
Return
End If
Next
End Sub