How to click check box automatically

Hi @Rahul_Unnikrishnan ,

I tried the above solution, while condition is working but I want give the value 10 as dynamic and also in my application taking alternative tabelrow count for example 1st row the tablerow selector will be 1 2rd tablerow selector will be 3.
For example I have 15 invoices need to upload one by one.

In this case how write the while condition and after uploading all the 15 invoices how get exist the while condition.

Kindly Suggest
Thanks for your help

Baby