I am trying to record coded UI for a WPF application. My goal ls to click on button (Mybutton).
The problem is that in the application there is another control which in not visible and it lays on top of my button. Each time i’m clicking myButton – the code which the CUIT generates is for the blockingControl.
I have the app code – but have no permissions to change the xaml (I can add my own implementation such “onCrerationAutomationPeer”).
Is there a way to write a plug in which will know to recognize that the BlockingCcontrol is not visible – and will not choose it?
I have figured out that if I implement
onCrerationAutomationPeerto return nullthe blocking control will be ignored.