mainWindow (extends System.Windows.Forms.Form as usual)
|
|---> viewPanel ( System.Windows.Forms.Panel )
| |
|---> toolStrip ( extends System.Windows.Forms.ToolStrip )
| |
|---> tddMode ( extends System.Windows.Forms.ToolStripDropDownButton )
|
Element : Element details not available.
Name : TreeValidationException
Message : UI Automation tree navigation is broken. The parent of one of the descendants exist but the descendant is not the child of the parent
Stack Trace : at UISpy.Base.Tree.BuildTree(AutomationElement element)
at UISpy.Base.Tree.BuildTreeAndRelatedTrees(AutomationElement element)
That is rather odd. What is your custom control doing?
It looks like the toolstrip is not exposing tddMode as a child in UI automation properly.
Could you attach a small sample winforms project which replicates this issue then I can try to look into it.
I got nothing off the top of my head
--
You received this message because you are subscribed to the Google Groups "TestStack.White" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
teststack_whi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
This looks like an unsupported scenario in Windows Forms, there is nothing White can do if the underlying framework fails to work properly.
After the next release of White, I will be trying to port White over to v3 of the UIA framework. Currently White is using v2, unfortunately it has been a lot of work to get White to the stage where I can move it over.
It seems to be able to find the controls without throwing errors, so this issue has likely been fixed.
Cheers,
Jake
I'm glad I kept writing more tests using White, then. Aside from this scenario, it's worked wonderfully. I'll be eagerly waiting for the new versions.