I've got an list with dynamicly generting objecets (treeitems).
I have to find all of them, and then get their value, which according to ranorex Spy is stored in AccessibleValue.
I'm able to get all of those items, but can't get AccessibleValue, for me it's always null.
Here's my code:
void ITestModule.Run()
Code: Select all
{
IList<TreeItem> h2List = Zliaczanie_pracownikowRepository.Instance.FrmMain.DataPanel.Self.Find<TreeItem>(".//TreeItem");
foreach (Ranorex.TreeItem h2item in h2List)
{
h2item.MoveTo();
var value = h2item.GetAttributeValue<TreeItem>("AccessibleValue");
}
}
Any ideas how to fix it?