We have a SAP process that fails time to time because of it appears other windows, for instance a popup message from another application. How can we enforce to keep the focus on the SAP screen we are managing?
Some error handling would come in handy here. You could set something up so that when there is an error you can reset the focus to the correct screen then continue where it left off.
Here’s some documentation on error handling https://docs.uipath.com/studio/docs/global-exception-handler.
Hope this helps.
We are catching the error, my question is whether it’s possible something like:
- If error Selector Not Found Exception: GetFocus (what app has the focus now)
- If app is not my SAP app then SetFocus on SAP