Fill a cambo input with a WebBrowser VB.NET


Hello, I need your help. I have a page with a textbox so to speak:

<input id="search" type="search" tabindex="1" name="term" placeholder="Search" class="main-search rounded form-control input-lg clearable" autocomplete="off" spellcheck="false" dir="auto" autocapitalize="none" value="">

I want to fill that text box that my webbrowser loads but I do not know how.


edit: do I have to fill in the Value property of the Input tag, as an achievement that?

It would be something like this:

Dim allelements As HtmlElementCollection = childControl.Document.GetElementsByTagName("input")

                    For Each item As HtmlElement In allelements
                        item.GetAttribute("Value") = "Go!"

thanks in advance.

asked by S4L salsoft 15.12.2018 в 16:02

0 answers