Click on CheckBox


#1

Hi,
I have scrapped a datatable using datascraping and now in the webpage I want to click on the checkbox where status should be “To Be approved” . Please help.

Regards,
Som


#2

Hi @somya177

Use check activity to check the check box

Thanks
Ashwin.S


#3

actually I want to click on only that checkbox where the status should be to be Approved.
And this status could be anywhere in the table on the webpage.
Below is the screenshot.


#4

Hi @somya177

Then use get attribute with dynamic variable selector
Use element exists and click activity
Use build datatable and add data row

Thanks
Ashwin.S


#5

Please elaborate


#6

Hi,
Please elaborate.
Because this to be approved can be anywhere in the table and I want my bot to click on all the checkboxes where status is To be Approved.


#7

Can we export it ?


#8

Use Data scraping… and you will get datatable in output. Now make a loop of that datatable and u will get rows one by one. Compare it one by one and once you get a status as Approved, just click it via selector. Where pass your aaname as your PO number or whatever the unique one.


#9

i did it the same way but now it’s unable to fine the corresponding checkbox where to click.Giving the selector error.
Please help asap.


#10

please remove that id in selector, and add some unique values… like, aaname or any else.


#11

Once verify this selector. I just tested it on some random websites and it’s clicking a checkbox.
Can you please provide me your selectors ? You have to check each row with your po number and once that po number exists then you have to select that row via po number as an aaname and then click that checkbox with row value.


#12

Just provide the first row status and checkbox selector


#13

generate the selector for where status is To Be Approved then Enable the Attribute Name aaname is “To Be Approved” using the UI Explorer.


#14

Hi @somya177,

Get the checkbox selector.

First Extract the Table.

Then do For each row activity
check if condition whether Status="Approved"

if yes click the corresponding checkbox.

create the dynamic selector for checkbox idx value pass it dynamically.

Regards,
Arivu