Search

Get Text with Element

Articles

Use this function to get text from the screen with the help of relative element; position and length.

Useful in Mainframe Automation.

Syntax

Get Text with Element (element_name, before_or_after, field_position)

Parameters

Input Parameter Name Description
element_name Relative element name from which the text has to be fetched
before_or_after Field presence (value should be either before or after)
field_position Field position value

Returns

Return value Description
Text Returns Text from the screen

Sample

Get Text with Element (UserName, after, 2 )

  • Return the text two places to the right of the UserName field on the Mainframe Screen.

To view all the UI functions, click here.

Did you find what you were looking for?