Click on Product Name in portal

Hi Team,

We have a list of product names in Portal something like this

We need to click on each of the product name even if they have same name

We cannot click on Product desc section of rows as that does not redirect

The approach that we currently use works if the column contains different product names
But if same product name is present then multiple times it clicks on same product instead of next product

Kindly share some other approaches that could help

Thanks team in advance

@NISHITHA

Use for each ui element in combination with click inside it with currentelement

Cheers

Thanks @Anil_G for the prompt response will definitely try the approach suggested

1 Like

@NISHITHA

Try finding the selector from ui explorer and give in next selector proprty and check

Alternately use a loop around it to click on next and then for each ui element inside loop so till next is present the loop continues ..you can use check app state to see if next is still present

Cheers

Hi @NISHITHA

In some cases like the one you have shown in screenshot, next will be disabled if there is no next page.

So explore the selector of that next using ui explorer, and you would properties such as aria-disabled or some other property regarding its enabled/disabled mode.

So in your code, check if it’s disabled, don’t click else click.

Thanks @sonaliaggarwal47 , @Anil_G

I tried using next selector to scroll down

But still all data are not getting captured in it

Pls share if you have any other suggestions

Thanks in advance

@NISHITHA

as mentioned please try with click in a loop and then extract each page

cheers

Hi @NISHITHA

Step Activity Details
1 Data Scraping Scrape entire table into a DataTable
2 Filter DataTable Keep only rows with product “KNG”
3 Loop For each filtered row
4 Generate Dynamic Selector Based on row index, target the specific cell
5 Click Use Click activity to click on product name cell

Additional Tips:

  • Use Get Attribute activity to retrieve row indexes or unique identifiers if available.
  • Use Dynamic Selectors with string variables for row-based targeting.
  • If the table rows are dynamically loaded, ensure to include Wait Element activities to handle asynchronous loads.