Get Text Activity Error in minimized SAP screen

Hi Team,

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
"

Can you please help on this ?

Hi @abhilashmohanty86

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.

Happy Automation

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.

How can we handle this ?

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.

@abhilashmohanty86

Have you tried changing the Input method of your Use Application activity to Simulate if no, try it.

Hi @abhilashmohanty86,

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.

Thanks

@abhilashmohanty86

you can use hover element activity to get it to focus and then use get text

also minimizing and running in VM is not advised

cheers

Tried with Simulate, still the same issue.

There is no Visible Text selector attribute.

I tried the “Hover” activity, but still, it gives the same error.

@abhilashmohanty86

did simulate work?

cheers

@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

Ya i did try that but as you said unless the element is visible the activity throws an error.

@prashant1603765 - Thanks, I did the settings change of the robot to a desired resolution and now it works without any other property modifications.

@Anil_G , @ashokkarale , @iampnkz , @Dhruba_Jyoti_Kalita - Thank you for your support on this. :slight_smile: