I am using Coded UI (C# language) for recording and playing back a series of events. In it, there's a plus sign which on clicking opens another IE window. I've now to do certain actions on this new browsing window.
Obviously, I did record these steps and it has been generated as code in my script but while playing back, this new window refreshes itself a couple of times and it loses focus I guess. Hence, CUIT is unable to Search the first step that was to be executed on the new window. Could you guys please help me in out here? As in how do I change my script to bring back focus on this new window.
The error as you would've guessed reads:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties..