This project is read-only.

Bricks.BricksException : Error invoking Tree.HasNode

Aug 3, 2010 at 12:48 PM


I am trying to write a test case on  a sample application containing Tree. 

Tree tree = document.Get<Tree>(SearchCriteria.ByAutomationId("MyTreeView"));


When trying to print the nodes, it threw the following exception

White.Core.Mappings.ControlDictionaryException : Could not find TestControl for ControlType=tree view item and FrameworkId:Silverlight
    at Bricks.RuntimeFramework.ReflectedObject.Invoke(MethodInfo methodInfo, Object[] arguments)
    at Bricks.DynamicProxy.DynamicProxyInterceptors.Process(IInvocation invocation, InterceptContext interceptedContext)
    at White.Core.Interceptors.CoreInterceptor.Intercept(IInvocation invocation)
    at Castle.DynamicProxy.AbstractInvocation.Proceed()
    at TreeProxy1c803654e13f4a5982e12f28ee6aa6b9.Nodes............

When i tried to debug to find the cause, i found that the 'Tree' object itself formed with exception in Nodes.

means tree.Nodes, tree.SelectedNode etc all contained error information when i looked into the local variables of the Tree object.

Can anyone help on this?


Aug 8, 2010 at 2:25 AM
which class in AUT you are using to create Tree object? I haven't found tree implementation is Silverlight, hence there is no inbuilt support for it.