Posted: Thu Oct 11, 2007 8:56 pm Post subject: PushButton - how can I select an item from the dropdown list
I can open the dropdown list using this code fine:
foreach (Control control in _form.Controls)
{
Element objDropDown = control.Element.FindChild(role, name, className, location);
if (objDropDown != null)
{
// click the dropdown list
objDropDown.DoDefaultAction();
rc = 0;
break;
}
}
After the list is open, I don't know how to select an item. I don't know how to use the spy to get the info on the dropdown items since the dropdown list closes as soon as I activate the spy.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum