I'm having an issue while creating automated tests.
My scenario is this, I have the same app open but with different web services attached:
1. AppBO with ERP1
2. AppBO with ERP2
The operations that I'm doing are exactly the same on both apps, but when I perform a repository element .WaitForExists(), Ranorex can't establish in which app to search for that same element, example:
The example might seem weird but it's exactly how I described... I'm making imports and exports on the same AppBO but with different ERP solutions.On "AppBO with ERP1" I open a window named "Window X" and the validation for WindowX.WaitForExists() works just fine. But if I leave "AppBO with ERP1" opened along with "Window X" also opened, when I switch to "AppBO with ERP2" and open the same "Window X", Ranorex doesn't WaitForExists() of "Window X", it simply tells me that "Window X" exists because it's already opened in "AppBO with ERP1".
Also, the AppBO opens with a different titlebar for each ERP, for example the titlebar for the ERP1 = "AppBO ERP1" and for the ERP2 the titlebar = "AppBO ERP2"
Is there a way to define on which app to search for the repository element (the element is the same on each application, because the application is AppBO)?
Hope to get back from you guys, thanks.