Page 1 of 1

Getting List of Status bar items

Posted: Tue Feb 24, 2009 2:26 pm
by AutoTester
I am trying to get list of Status bar items. There are about 20 of them, using RanorexSpy, i can see that , the items under tool bar are listItems. How do i get the values of these list items?

Posted: Wed Feb 25, 2009 3:18 pm
by Support Team
Please read the User Guide carefully before posting in our forums.
You can also learn from our samples shipped with the software package (under Ranorex 2.X/Samples dir).

Here you can find an example how to read a statusbar item:

Code: Select all

ListItem listItem = comboBox.FindSingle<ListItem>("list/listitem[@accessiblename='Black']");  
Report.Info(listItem.Text);
Kind regards,
Gabor
Ranorex Support Team