How to fill out a form field without a name in webbrowser control?

Posted by ajl on Stack Overflow See other posts from Stack Overflow or by ajl
Published on 2010-04-14T15:04:51Z Indexed on 2010/04/14 15:13 UTC
Read the original article Hit count: 315

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">**

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about webbrowser-control