Select a specific row in a web page table

Hello to everyone,
my questions are: how can i make selectors dynamic in order to select the last row in a web page table? Or how can i select the row where the box is unchecked? Because there will be only one box unchecked in the all the tables
I show you two screen of different page (related to a different employees) with the same table.
The table is:


I would like click only in the row where the last box on column “close period” is unchecked
Thees ui explorer screen are generated selecting the box uncheck in the last row

Each advice is appreciated!
Tks

1 Like

Hey @daniele.giunta94

Kindly find the selector for the checkbox ans check in the property explorer to find the checked property with false as the value or find the checkbox with no checked property.

Hope this helps

Thanks
#nK

Hi @daniele.giunta94 ,

Based on the screenshots provided I have question like are those last two screenshot belongs to two table rown in the website. Please confirm.

how can i make selectors dynamic in order to select the last row in a web page table?

Yes we can make selectors dynamic to get the last row from the website.

To achieve above we have to use extract table data activity and get all the rows from the website. It will provide you a datatable which contains all the table information. By using following expression you would get the row count from the datatable.

YourDT.rows.count.tostring it will give you the row count which represents final table row number you can store this one to variable FinalRowIndex and pass this value to selector attribute tableRow in the form of dynamic selectors. Once you run the flow it will click the last row.

Or how can i select the row where the box is unchecked

For this we have to find out the exact attribute for the checkbox to understand whether it is checked or unchecked mostly selectors would have attributes like Checked. By using get attribute activity to understand whether it is checked or not. You have to use the combination of above idea and this idea to achieve this requirement.Please explore on this area. Thanks

Hi @kirankumar.mahanthi1 , nice to see you again!
first of all, I confirm that is a web page table (in particular ERP of my company). Then, i would submit you a possibile solution but it doesn’t work like i hope. So, i find out that in ui explorer on the left panel there is “text=unchecked” and i put this condition in selector but nothing… it doesn’t click on the row


It should works or not for what reason?
I’ll try to make the two advice that you give me and i’ll let you know.
Tks

2 Likes

Hey @daniele.giunta94

Just use find element and get this as a first step please ?

And if the above works fine please let us know.

Thanks
#nK

hello guys @kirankumar.mahanthi1 @Nithinkrishna ,
I solved using the attribute that you can see in the screen (checked=‘0’)


With this setting, the click is only in the row where the checkbox is unchecked.

Now, I have to flag another checkbox (close period).


Which combo of activities how can i use to flag this checkbox (checkbox selector details in the following screen)?

Tks

1 Like

Hey @daniele.giunta94

I’m assuming you want to check this checkbox…

You can use Check activity to perform the same.

Ref - Check

Hope this helps

Thanks
#nK

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.