I am creating a windows form in VB.NET with web browser control, but not able to click on the below code.
<input type="Submit" class="btn btnSearch bold include_WidthButton" value="Search">
I can click when it is get element by ID, but not by classname. Please help me so much of googling didn't help me.
This is what I tried:
For Each Element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("btn btnSearch bold include_WidthButton")
If Element.OuterHtml.Contains("btn btnSearch bold include_WidthButton") Then
Element.InvokeMember("click")
End If
Exit For