You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just starting out on White and I am getting the following error when trying to access the nodes of a tree within my .NET 4 app:
'An exception of type 'TestStack.White.Mappings.ControlDictionaryException' occurred in TestStack.White.dll but was not handled in user code
Additional information: Multiple TestControls found for ControlType=tree view item and FrameworkId: - TestStack.White.UIItems.TreeItems.Win32TreeNode, TestStack.White.UIItems.TreeItems.WPFTreeNode, TestStack.White.UIItems.TreeItems.Win32TreeNode'
The code is as follows:
List<Window> windows = application.GetWindows();
IUIItem customToolsAddInsButton = windows[0].Get(SearchCriteria.ByText("Custom Tools (Add-Ins)"));
customToolsAddInsButton.Click();
Panel customToolsPanel = windows[0].Get<Panel>(SearchCriteria.ByAutomationId("Function.CustomTools"));
Tree customToolsTree = customToolsPanel.Get<Tree>();
foreach(TreeNode node in customToolsTree.Nodes) // Exception thrown here
{
// do something
}
I am also using Visual UI Automation Verify and can see that the nodes are there (and can see them within the app UI). Within Verify, the hierarchy looks as follows:
I am just starting out on White and I am getting the following error when trying to access the nodes of a tree within my .NET 4 app:
'An exception of type 'TestStack.White.Mappings.ControlDictionaryException' occurred in TestStack.White.dll but was not handled in user code
Additional information: Multiple TestControls found for ControlType=tree view item and FrameworkId: - TestStack.White.UIItems.TreeItems.Win32TreeNode, TestStack.White.UIItems.TreeItems.WPFTreeNode, TestStack.White.UIItems.TreeItems.Win32TreeNode'
The code is as follows:
List windows = application.GetWindows();
IUIItem customToolsAddInsButton = windows[0].Get(SearchCriteria.ByText("Custom Tools (Add-Ins)"));
customToolsAddInsButton.Click();
foreach(TreeNode node in customToolsTree.Nodes) // Exception thrown here
{
// do something
}
I am also using Visual UI Automation Verify and can see that the nodes are there (and can see them within the app UI). Within Verify, the hierarchy looks as follows:
"pane" "" "Function.CustomTools"
"tree" "" "5376242"
"tree item" "This is some text"
Any help you can give is will be appreciated.
Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/277.
No I haven't. I'm not using White currently and can't dedicate the time to fixing this up.
I am more than happy to add anyone as a contributor and can also skype to answer any questions I still remember but I don't think I will get to this soon.
Activity
JakeGinnivan commentedon Jan 6, 2015
This is a bug, it was introduced when trying to prepare for newer versions of the ui automation libraries..
The issue is that the framework is not being passed down properly. I will see if I can fix it and a few other issues and get release out this week.
Sorry about the rocky start to using White
Sent from my Windows Phone
From: starbug8866mailto:notifications@github.com
Sent: ý06/ý01/ý2015 06:21
To: TestStack/Whitemailto:White@noreply.github.com
Subject: [White] TestStack.White.Mappings.ControlDictionaryException (#277)
Hi,
I am just starting out on White and I am getting the following error when trying to access the nodes of a tree within my .NET 4 app:
'An exception of type 'TestStack.White.Mappings.ControlDictionaryException' occurred in TestStack.White.dll but was not handled in user code
Additional information: Multiple TestControls found for ControlType=tree view item and FrameworkId: - TestStack.White.UIItems.TreeItems.Win32TreeNode, TestStack.White.UIItems.TreeItems.WPFTreeNode, TestStack.White.UIItems.TreeItems.Win32TreeNode'
The code is as follows:
List windows = application.GetWindows();
IUIItem customToolsAddInsButton = windows[0].Get(SearchCriteria.ByText("Custom Tools (Add-Ins)"));
customToolsAddInsButton.Click();
Panel customToolsPanel = windows[0].Get(SearchCriteria.ByAutomationId("Function.CustomTools"));
Tree customToolsTree = customToolsPanel.Get();
foreach(TreeNode node in customToolsTree.Nodes) // Exception thrown here
{
// do something
}
I am also using Visual UI Automation Verify and can see that the nodes are there (and can see them within the app UI). Within Verify, the hierarchy looks as follows:
"pane" "" "Function.CustomTools"
"tree" "" "5376242"
"tree item" "This is some text"
Any help you can give is will be appreciated.
Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/277.
starbug8866 commentedon Jan 6, 2015
No worries, thank you for the quick response. Looking forward to the fix!
VladislavKostyukevich commentedon Jun 23, 2015
Hey,
I have the same problem. Were found some solutions?
szabolcslevay commentedon Apr 6, 2016
The issues is still not fixed.
andrewtheart commentedon May 12, 2016
Indeed, it does not appear to be fixed ... Jake, can you indicate when the regression was introduced so we can use a prior version?
maninwindow commentedon May 13, 2016
@starbug8866 I had same issue. Eventually, i fixed it myself. My solution may not be the best, but have a solution is better than nothing. My Solution
AustinMatherne commentedon Jul 25, 2016
@JakeGinnivan have you had a chance to look into this further? I'm evaluating using White to test an app with many trees.
JakeGinnivan commentedon Jul 25, 2016
No I haven't. I'm not using White currently and can't dedicate the time to fixing this up.
I am more than happy to add anyone as a contributor and can also skype to answer any questions I still remember but I don't think I will get to this soon.
AustinMatherne commentedon Jul 25, 2016
Thanks, I appreciate the offer. I'm about to tackle a large project with White. I'd be quite happy to be added as a contributor.
There's actually already an open pull request that resolves this issue (at least for me) #450. Can we get it merged?
AustinMatherne commentedon Aug 7, 2016
@JakeGinnivan just following up on this. Can you add me as a contributor?
JakeGinnivan commentedon Aug 11, 2016
@AustinMatherne done, sorry for the delay :)
omireault commentedon Sep 28, 2016
I didn't isolate my fix properly, so I had to restart the PR request.
gpomykala commentedon Feb 23, 2017
can someone publish a nuget package?
sark2323 commentedon Dec 6, 2017
is there a solution for this issue?
Merge pull request TestStack#480 from omireault/frameworkId_Fix fixes T…