How to click on dynamic field in browser based on results returned in a datatable

Hi,

I’ve created a script which extract data from a website. I now need to loop through the returned job numbers in column 2 in order to click on a button called edit in column 1. How can I loop through the data table results please and dynamically click on each edit button associated with each row using a loop?

Any help would be much appreciated.

Thanks
T

Hi,

In many case, we ca use tableRow attribute for it.
Can you try as the following?
First, set int32 variable at Index property in ForEachRow activity.(Let’s say idx)
Then, create int32 variable (Let’s say rowIndex) to add offset value to idx.
Next, put Click activity with strict selector. And set variable at tableRow attribute as the following.

Or you may also use ForEachUiElement activity instead of DataScraping.

Regards,

Hi,

Thank you so much! It is now working!

Thanks
T

1 Like

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