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
Welcome to the community ![]()
Try following this approach.
- Retrieve All Headers:
Use theFind Childrenactivity to get all headers in the table → Iterate through these headers to find the one with the matching title. - 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. - 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