Select the certain web-element respective to some conditions

To make the selector for click activity dynamic, I have created a variable ‘RowId’ and then incremented it if the WIID was not found (else part) -


As per your application, you will have to make selectors dynamic.
The do-while loop is to perform the 4th step mentioned above. Get text will get the WIID of the table row in the web page and if condition will verify whether the WIID of the table row in the web page matches with the WIID of the filtered table.
This method will select the rows one by one.