How to fill out a form field without a name in webbrowser control?
- by ajl
In the past, I used the code below to fill out a form field using the webbrowser control in VB.Net. The page I am working with doesn't have name field for the inputbox, so my code doesn't work. How would I fill out the input box defined at the bottom of this post in bold?
Dim iPage As HtmlDocument
iPage = wb1.Document
iPage.All.Item("case_num").InnerText() = caseNum
iPage.All.Item("button1").InvokeMember("click")
**<input type="text" id="tbSymbolLookupMain" mode="mixed" autocomplete="off" defaulttxt="Enter Name or Symbol(s)" value="Enter Name or Symbol(s)" class="SymbolLookup fhHandleFocus fhDefault">**