how can i scroll through a webbrowser combobox's items + select 1 if it equals a string value?
i've got the id of the combobox
thanks for your help
Printable View
how can i scroll through a webbrowser combobox's items + select 1 if it equals a string value?
i've got the id of the combobox
thanks for your help
Basically you call WB.GetElementById to get the htlmelement of the dropdownlist you're after, then call GetElementsByTagName("option") to get the htmlelementcollection containing all the items in the dropdownlist. Loop thru this collection calling GetAttribute("value") on each element to look for the one you need and once found, call SetAttribute("selected") =true.
perfect... well close enough.
GetAttribute("text")