Go through all elements of a treeview
Posted: Wed Dec 02, 2020 12:16 am
Hello guys,
Just like the pictures below:
I have a treeview window. My goal is to go through all items in this treeview, left mouse click each tree item and then use same approaches to deal with them. So a 'foreach-loop' is the ideal method.
what I really want is (c#):
But my problem is: the items / tree structure of the treeview are always changed! I hope I can get the paths of all these tree items during the testrun!
Just like:
Can I do that with Ranorex?
Thank you very much: )
Lg Rika
Just like the pictures below:
I have a treeview window. My goal is to go through all items in this treeview, left mouse click each tree item and then use same approaches to deal with them. So a 'foreach-loop' is the ideal method.
what I really want is (c#):
foreach (string itemPath in pathsOfAllItemsInTheTreeview) { LeftMouseClick (itemPath); Approch (){ ... }; }Path here is RanoreXPath.
But my problem is: the items / tree structure of the treeview are always changed! I hope I can get the paths of all these tree items during the testrun!
Just like:
List <string > pathsOfAllItemsInTheTreeview = GetPahtsWithTreeviewPath(treeViewPath);
Can I do that with Ranorex?
Thank you very much: )
Lg Rika