I have used “Get Text” activity for reading a text of the object in SAP screen. It works well when the element is visible. But it gives the below error when the window is minimized, and the SAP object element is not visible.
Error:
"Could not find the user-interface (UI) element for this action.
Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use “Check state” activity to check the application state before executing the action
• Increase the “Delay before” value to allow time to the application to render entirely and become responsive
"
The target element to be visible, so they fail when the SAP window is minimized so try to use a Check App State or Element Exists activity to verify visibility, and if minimized, use Activate Window or Maximize Window to bring the SAP screen into focus before running Get Text.
actually the issue here is the runner VM minimized screen resolution which takes the element to right side of the window and is only visible when scrolled to the right.
Set the runner VM to a fixed resolution (for example 1920x1080) and keep it maximized so SAP elements don’t shift off‑screen, or use scroll or send hotkey to bring the field into view before Get Text.
You can apply Maximize Window, Set Screen Resolution, and Send Hotkey to handle this.
You can try the steps suggested by Ashok. Additionally, check the selector and see if the Visible Text attribute is selected. If it is, try after removing it.
@abhilashmohanty86 yes, you can try Visibility Check = None/Interactive and Simulate mode, but if SAP is minimized and the element is not available, Get Text may still fail. The reliable approach is to keep SAP visible/maximized or use SAP scripting/backend extraction