Hey,
So WPF app has one Xaml for similar dialog. And because of this, all of the different ok and cancel buttons throughout the app have the same automation id. When I create a test that hits more than one of these dialogs, the test originally ties them to the correct dialog window and will pass. But when I close test studio and come back, it merges all of the steps that hit a cancel button into the same dialog (usually the first one hit in the test). So when the second dialog window comes up with a different title, the test is changing the primary target in the step properties to the first dialog hit in the test, causing a timeout, even though the elements in test studio are named differently and in the elements explorer are categorized under the correct title.
I can't figure out a workaround.
So WPF app has one Xaml for similar dialog. And because of this, all of the different ok and cancel buttons throughout the app have the same automation id. When I create a test that hits more than one of these dialogs, the test originally ties them to the correct dialog window and will pass. But when I close test studio and come back, it merges all of the steps that hit a cancel button into the same dialog (usually the first one hit in the test). So when the second dialog window comes up with a different title, the test is changing the primary target in the step properties to the first dialog hit in the test, causing a timeout, even though the elements in test studio are named differently and in the elements explorer are categorized under the correct title.
I can't figure out a workaround.