
I am having difficulties with selecting windows on a desktop application. I am constructing an automated flow for clients desktop application. The current flow loops through an excel list of customers and opens opens menu item to select the matching account in de desktop app en returns to the main screen for the next operation. This part works.
Unfortunately by selecting the account the window element changes name and PA is not able to find the newly named homescreen.
I have tried several possibilities:
I tried making the window selectors more universal. Because most of the name of the window element stays the same, only the last part of title changes to reflect the new customer name, I changed the window element to look for the window that contains the part of the title that is constant.
Secondly I tried constructing the new name as a string variable and put that inside the window selector
So after the name change I used a get Window or Focus Window action to get the new window using part of the title or the newly created title string. Both are not able to recognize the new window.
Thanx in advance,
Try editing your UI Element's selectors so the title is no longer set to "Equal" but "Starts with", then remove the trailing name from the title. This way, regardless of what name it shows, it'll still locate that window (assuming there aren't other windows open that match the "Starts with" title).
In the example below, I have a window that includes the user's username, so I edit the element to remove that portion so it'll instead search based on the rest of that title.