Get Row Number by Text
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the Table captured from the AUT Element Name. It instructs the Avo Assure Client to retrieve the row number of the specified text present in the table and save the result in the given output variable.
Input: <text>
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In a Customer Relationship Management (CRM) application, the "Customer List" page displays a table containing customer information. Each row represents a customer, and the table includes columns like Customer ID, Name, Email, Phone Number, and Status. The test needs to find the row number of a specific customer, based on their name or other text in the row, in order to validate or interact with that customer's data. The "Get Row Number by Text" Action is used to dynamically identify the row number of a given customer by matching the name in the table.
Customer Name to Search: "John Doe"
The row containing "John Doe" is located, and the Action needs to returns the correct row number as row 3 as John Doe is listed as the 3rd customer in the table and store it in the {result} output variable.
The resulting extracted number is stored in the {result} output variable as 3, which can be utilized for display or other purposes.