Clicking an Image in a Column with a Stable Header Title

Hello,
I need to click on an image in a table column, but the column number is not stable. The header title remains the same. I thought using anchors would solve the problem, but it didn’t work. Any suggestions?
Thanks in Advance, Astou

@astou.thiam,

Welcome to the community :tada:

Try following this approach.

  1. Retrieve All Headers:
    Use the Find Children activity to get all headers in the table → Iterate through these headers to find the one with the matching title.
  2. Get the Column Index:
    Once you know the header title, retrieve its index position. This can often be done by noting its order in the list/array of headers.
  3. Construct a Dynamic Selector for the Image:
    Using the retrieved column index, construct a dynamic selector for the image you need to click. → Ensure that the selector has the column (and optionally the row) as variables.

LLM help me to structure this answer but it’s validated by me

Thank you for this approach! I will try to follow these steps. I will keep you updated on the results

1 Like