How to select a TreeView node in WinAppDriver



  • 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?



  • TreeView has TreeViewItems. The basic approach would be:

    1. Get driver.PageSource property, save it to file and see generated xaml/xml file.
    2. Use driver.FindElementByXpath() to search through xml (for name Jesper Aaberg from TreeView example xpath would be something like this: //TreeView/TreeViewItem/TreeViewItem)


Suggested Topics

  • 2
  • 4
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2