Search

Get Text From Relative Field

Articles

Use this function to get the text from the screen with the help of a relative element.

Note: Useful in Mainframe Automation.

Syntax

Get Text From Relative Field (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 the text from the screen

Sample

Consider the scenario of fetching text from a mainframe screen
Get Text From Relative Field (UserName, after, 2 )

  • Return the text two places to the right of the ‘UserName’ field on the console.

To view all the User Interface (UI) functions, click here.

Did you find what you were looking for?