B
BobRoyAce
I have a WebBrowser on a form and I am automating some data entry on
pages displayed therein. I know how to select/click on a radio button
or checkbox. I know how to set the value of a text box. But, how do I
programmatically set the value picked in a drop down? I tried the
following:
Dim oHtmlElement As HtmlElement
oHtmlElement = WebBrowser1.Document.GetElementById("cboGroups")
oHtmlElement.InnerText = "Group 1"
but that doesn't work, even though "Group 1" is one of the options in
the dropdown.
pages displayed therein. I know how to select/click on a radio button
or checkbox. I know how to set the value of a text box. But, how do I
programmatically set the value picked in a drop down? I tried the
following:
Dim oHtmlElement As HtmlElement
oHtmlElement = WebBrowser1.Document.GetElementById("cboGroups")
oHtmlElement.InnerText = "Group 1"
but that doesn't work, even though "Group 1" is one of the options in
the dropdown.