'
'
' TAG Attribute
' | |
'<input type="password" class="inputtext" name="pass" tabindex="2">
For Each Elements As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input")
If Elements.GetAttribute("name") = "pass" Then
'if You want to Set Value of this object Follow this
Elements.SetAttribute("value", "Your Value Goes here")
End If
Next
VIsual Basic.Net - Click Button in Webbrowser Without ID
Steps:
- use google chrome Select html Element & Right Click on element
- then select inspect element
- E.G <input type="password" class="inputtext" name="pass" tabindex="2">
- input is Tag name and attribute is anuy thing name,tabindex etc
- You can see my picture and Code in my above provieded code/image/
- You can Create bot of any kind
- Auto Browser Work With your provided instruction.
No comments:
Post a Comment