0

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 1

1

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.