I’m working with a piece of software that throws a lot of different pop-ups upon saving the file. The pop-up selector all looks the same for each one except for the text listed. Some pop-ups prevent the file from being saved. I can easily recognize those with an Element Exist Activity and the following selector:
It would be like a NOT operator
You could get Title attribute of every popup and with Regex validate if the Popup is NOT “Not to be saved” element
Check this:
You can use On element appear activity with wait active and wait visible with ‘Continue on error’ as true with a timeOutMS property to just 3 seconds in a parallel activity scope so that you can retry it several times for saving the file.
make the selector dynamic and indicate the whole window as the element and you can delete the text you mentioned to make is generic.