The loop only executes the first row

Hi there. I have the following workflow.

The workflow creates a datatable of different elements on a website. After creating the datatable it must click on each element to open the details page of the element and click on a download link. It works, but the workflow clicks for each row on only the first element and downloads 96 times the same download (because there are 96 elements in the list). What he should do is opening each element (each row) and perform the download for each element.

Because I use the ‘Go to url’-activity is opens the same url. How do i set to open each element by clicking on its name?

What do i do wrong? Please provide more info with screenshot, and not the half (incorrect) answers I’m receiving the last days, thats not helping :slight_smile:

@tech2

  1. Go to url should be outside loop
  2. Why are you looping a datatable?
  3. If you need to click eqch element use for each ui element
  4. Elae if you need to click on the name as in datatable then get selector containing innertext and in innertext use currentRow("ColumnName").ToString as a avariable to change name

Cheers

I used For Each UI Element. But it doesn’t work. I indicated the name fields, but it doesn’t open all instances. What do i do?

@tech2

Inside for each…to the click activity you need to send the currenelement as input eement

And as per error you are showing the the selector for attachmnet is wrong or is different in each page

Cheers

and how do i do that? Can you send a sceenshot? Sorry i’m am really beginner.

@tech2

Open properties of click activity…and find input element…in the field where you can provide value write currentElement

Cheers

I did this, but it doens’t work. The robot won’t click on the download link in the details page.

@tech2

what did you indicate in for each ui element?

can you show your site as well please

and in click try the hardware event

to see which element it is trying…run the robot in debug mode and in the top debug panel , select highlight element

cheers

@tech2

For each ui element is to be indicated with the name…and inside the loop you have to indicate the download link…

so current element click will happen on the name…then another click to click on download…and finally another click to come back to initial screen

cheers