-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestStack.White TreeNode.Click() and TreeNode.Select() for leaf node does not work #672
Comments
Update: I've discovered an issue with TestStack.White for TreeNodes First of all, the Tree.node() method has never worked for our testing. It was necessary to implement our own traversal code:` private TreeNode FindNode(TreeNode node, string sVal, bool bExpandNode)
` I also had to create a static wrapper class in order to wrap calls to TreeNode action methods in try/catch due to erroneous Exceptions being thrown:`namespace FormFactor.WinCal.Utilities /// Robust TreeNode /// internal static class FfiTreeNode { private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
} Finally, TreeNode.Click() and TreeNode.Select() do not work to completely traverse a Tree:The only method that PARTIALLY works is: |
I have a WPF window containing a TreeView. I am able to automate traversing the tree and can successfully select or click (either one) nodes with children, but it doesn't work for leaf nodes.
The text was updated successfully, but these errors were encountered: