This is a migrated thread and some comments may be shown as answers.
WPF Combobox
1 Answer 31 Views
This is a migrated thread and some comments may be shown as answers.
Maria Isabel
Top achievements
Rank 1
Maria Isabel asked on 05 Dec 2011, 07:07 PM
Hello,

I am trying to automate tests to my WPF App.

I have one comboBox. I record the test without a problem but when I played back it, it gave this error:

ArtOfTest.Common.Design.Exceptions.ElementFindException: Unable to locate element. Details: Attempting to find [Wpf] element using 
Find logic 
 (Wpf): [name 'Exact' Shdw] AND [XamlTag 'Exact' systemdropshadowchrome][XamlPath 'Exact' /border[0]/contentpresenter[0]/textblock[0]]


Unable to locate element. Search failed!


   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


Can you help me?

Thank you.

Best regards,
Maria

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 06 Dec 2011, 05:46 PM
Hi Maria,
check out this article:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx

I can see from the Find Logic generated by Test Studio that this specific element (and possible your entire app) is not well suited for UI automation. Check out this article:
http://blogs.telerik.com/daniellevy/posts/11-03-01/best-practices-element-identification-with-id-and-automationid.aspx

Best wishes,
Stoich
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Maria Isabel
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or