i want to add those highlighted row values and match them with total .here when we click add line button system added one more line.as like 2nd image.so xpath is changed for total cell.so each time add lines total xpath cell is different so.how can i handle this situation
Then, I’ll manually add a step that count the number of elements and store the value into a project parameter(that has a default value equals to 35):
The next step will be getting the value of the element and storing it into a parameter. NOTE: The element locator must depend on the parameter we created in the first step :
Then, as I want to sum all values, I’ll create a new parameter called “Total_value” with default value “0”, and I will add a step that makes a mathematical expression:
After adding all these steps, I am ready to create my loop.
To achieve that, first we will need to group our steps into a test(except the one that counts the number of elements) and give it a name(Let’s call our subtest “Get values and sum”). NOTE: Once you grouped the steps, there is no “ungroup” optio, so I suggest to duplicate all steps.
ISSUE:
If I run get text script alone , it shows me the device name on the 12th position .
but running as a group returns no message and runs the given max 15 repeat whereas the total count from the element is 12.