How to click on image in a web table?


I want to click on the green selection image in the first table cell. This image has the same object properties as the image in the second row. I am not able to click on the image with Katalon Studio. Is there a function to link the selection image with the value in the other column (to make the image unique), and then click on the image?

table icons.PNG

Hi Terrence

Yes it is possible using either xpath or css. Without seeing your HTML it’s not easy to give precise details. That said, if I assume your HTML is something like:


Then this css should work to click the first image (not tested!)

table#my-table tr:nth-child(1) img

change to 2 for the second row.

I think I have that right. Hope it helps.

1 Like

Hi Russ, thanks a lot! This helped.