WPF Combobox

2 posts, 0 answers
  1. Maria Isabel
    Maria Isabel avatar
    5 posts
    Member since:
    Nov 2011

    Posted 05 Dec 2011 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Dec 2011 Link to this post

    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.
Back to Top