Unable to read TreeItem Cells if the TreeItem is not visible
Posted: Thu Jun 04, 2009 7:17 pm
OK, I have written a workaround to expand all TreeItems in a DevExpress Tree (see other thread about not being able to EnsureVisible on a DevExpress TreeItem or Cell).
Now that I have the tree fully expanded I want to read in all the Tree Item Cell data and store it to an array.
However, much like the EnsureVisible issue, if the TreeItem is not currently visible on the page, Ranorex is unable to read in the Cell data. It will only read in the cell data of tree items that are visible on the page.
And, since I cannot use EnsureVisible to make sure the TreeItem is visible on the page I will have to resort to yet another workaround to make sure each tree item is visible on the page before I try to read its data.
This is a kludge and greatly slows down the automation process. The particular Tree I am working on currently has > 100 TreeItem nodes. Other trees in my AUT have more.
Now that I have the tree fully expanded I want to read in all the Tree Item Cell data and store it to an array.
However, much like the EnsureVisible issue, if the TreeItem is not currently visible on the page, Ranorex is unable to read in the Cell data. It will only read in the cell data of tree items that are visible on the page.
And, since I cannot use EnsureVisible to make sure the TreeItem is visible on the page I will have to resort to yet another workaround to make sure each tree item is visible on the page before I try to read its data.
This is a kludge and greatly slows down the automation process. The particular Tree I am working on currently has > 100 TreeItem nodes. Other trees in my AUT have more.