I would like to Create a List of buttons
Code: Select all
List<Ranorex.Button> buttons = new List<Ranorex.Button>();
Code: Select all
buttons.Add(MyRepro.MainControl.SomeButton);
Now what happens is that before Ranorex adds this item into the list it will search on the screen for it. This i do not want, because sometimes the Items are not visible and it takes unnecessary time.
How can i Add an Repo item into a list without searching for it on the screen ?
Later i want to be able to use following code:
Code: Select all
foreach(var button in buttons)
{
if(button.Visible == true)
{
Ranorex.Report.Success("Was found");
}
}
Sam