ComboBox - GetElementByID
2013-07-29, 03:17 AM, (This post was last modified: 2013-07-29, 04:03 AM by GraveYard.)
#1
I need to pick a random value from a Combobox in Webbrowser
i see somewhere something with Invoke Click but i don't have ideea how to use it
[Image: somelsf.png]

WebBrowser1.Document.GetElementById("month-label").SetAttribute("value", ComboBox1)


At first element i have this code:
Quote:month-label
And second elemet is someting like
:2
:3
:4


Hmm, i don't have idea how to explain better

I need a code that allow me to pick a random Month of Combobox
I need to select a random Month from Birthday
https://accounts.google.com/SignUp?conti...lp=1&hl=en



SORRY FOR MY ENGLISH
AND ALL....

I resolve with this
Quote:Dim element As HtmlElement = WebBrowser1.Document.GetElementById("BirthMonth")
Dim month As HtmlElement = element.GetElementsByTagName("option").Cast(Of HtmlElement).First(Function(el) el.GetAttribute("value") = "05")
month.SetAttribute("selected", "true")


Possibly Related Threads...
Thread Author Replies Views Last Post
  Default Value in Combobox JaxTeller 4 496 2013-11-25, 03:21 AM
Last Post: JaxTeller





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top