Using dropdown menu on webpage

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
cnimnicht
Posts: 5
Joined: Fri Jan 30, 2009 12:46 am

Using dropdown menu on webpage

Post by cnimnicht » Wed Mar 11, 2009 2:05 am

Hi,

I am trying to find a way to select an item from a dropdown list that is dynamic. I have tried the following code, but the problem is that is has different results than when you manually select an item from the drop down box.

foreach (OptionTag option in repo.SomeWindow.SelectTagDropDownMenu.Find(".//option"))
{
if (option.InnerText == "1553")
option["selected"] = "selected";
}

when I use that code it selects the 1553 item, which is good. The problem is that if I do it manually, a button is added to the page for submiting, if I do it with that code the button never shows up.

Thanks,
Chris

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Wed Mar 11, 2009 10:57 am

Please refer to:

http://www.ranorex.com/forum/how-do-you ... -t702.html

Michael
Ranorex Support Team