So I am trying to select a node on a TreeView using WinAppDriver, any thoughts on how to find a element that will have a value I can access the element with?
1 Answer
TreeView has TreeViewItems. The basic approach would be:
- Get
driver.PageSource
property, save it to file and see generated xaml/xml file. - Use
driver.FindElementByXpath()
to search through xml (for nameJesper Aaberg
from TreeView example xpath would be something like this://TreeView/TreeViewItem/TreeViewItem
)