How can i find an WPF element on WPF application in the case automationID or Id is empty ?

2 posts, 0 answers
  1. HoangPham
    HoangPham avatar
    6 posts
    Member since:
    Oct 2013

    Posted 16 Nov 2013 Link to this post

    hi all,

    i only install VS2012 and TTF (latest version), On my wpf application have some wpf elements have automationId or Id is empty. I used the inspect.exe tool from MS to catch it with its properties. However i really dont know how to my script can find these elements with some functions come from TTF, such as: ByName, By Text, ... or ByExpression. For ByExpression, i really dont know how to know exactly the XamlPath ?

    I attached a illustrated image here (application window with wpf object focused and the inspect tool is listing out object's properties).

    Could you please see in attached file and give me some your idea / solution to resolve this ?

    Thank a lot !
  2. Velin Koychev
    Velin Koychev avatar
    88 posts

    Posted 21 Nov 2013 Link to this post

    Hi Hoang,

    I am sorry to hear that  you are experiencing this issue.

    You might need to experiment before you find the right identification method. You can use our documentation and the code samples there for guidance, as well as other forum threads. 

    In order to help you best, if it is possible please grant us access to your application so we can reproduce the issue on our end and give you a solution. 

    Thank you for your cooperation.

    Velin Koychev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top