Can't get accesibleValue while iterating through list of treeitems.
Posted: Fri Feb 22, 2019 3:39 pm
Hello, got a pretty big problem.
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()
Move to was just to check, if its really this element, and it is. It can move to it without any problem, but cant get this Accessible Value.
Any ideas how to fix it?
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?