How to recognize dynamically loaded controls in Coded UI automation and Coded UI Test is not able to find control in runtime RRS feed

  • Question

  • Hi all,

    I have 2 questions.

    I am trying to implement an automated test for a WPF application using Coded UI Automation framework.

    I am using VS 2015.

    1. The problem is with the dynamic loaded controls. For example, I have 2 tabs(tab1 and tab2.). When the contents of a tab2 are not updated then tab1 page will be blank. when tab2 contents get updated ,then tab1 page will load and UI automation can't find them. Is there any solution for it?

    Can I go with image comparison for it? If yes then how?

    2. And in my application, I am able to locate control using test builder which is having property values like Automation ID, and its locating well with blue color around it. It seems like problems occurs only during playback. I am  getting UITestControlNotFoundException. And Control type is edit.

    Anyone has Idea about it?

    Thanks in advance.

    Wednesday, December 23, 2020 6:19 AM