Page 1 of 1

Using dropdown menu on webpage

Posted: Wed Mar 11, 2009 2:05 am
by cnimnicht
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

Posted: Wed Mar 11, 2009 10:57 am
by Support Team
Please refer to:

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

Michael
Ranorex Support Team