I am using AutomationElement and UITestControl for programming representation of the UI controls I want to interact with. The problem which I faced with is that in some cases the automation tree is not updated (the visual tree is updated) and my automation test script cannot interact with the particular control.
I am using Inspect to get the automation attributes of the control I want to interact with. I saw that in these cases where the automation tree is not updated but I try to get some control automation properties – Inspect have a mechanism to provoke update of the automation tree.
I am just wondering if anybody knows any mechanism for provoking automation tree update.