Hi Marina,
In order to get the windows title from any application, you would need to get the 'Windows Text' attribute from the Win32 spied element as you can see below:
Here is an attribute whose name is 'Window Text'. You can use a Read Stage and use this element spied with Win32 mode. Note that this should be your entire outer window of the application. You can pass the input parameter called as 'Attribute Name' as 'Window Text' and assign a data item to store the result as shown below:
This is how you get the Windows Text for any application. Coming to your workflow, the issue lies most likely because you are not launching the application once the attach fails in your workflow:
As a best practice I wont recommend using retries in your business object. Instead try to attach of that fails try to launch. If your launch fails, throw your own custom exception message or rethrow the same as I have show above. In the page where you call this action, you can recover from the error, check if the error counter is less than max retries. If yes, then, increment the current retry count and use 'Kill Action' action and then again try for the same or else throw the exception out. Keep the retries in the sub page of your process than in the object layer.
The reason you should not nest the retires with object layer is so that they do not keep on multiplying like 3X3 = 9 times.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website:
https://devneet.github.io/Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.