[KATALON RECORDER] Click on specific text in body


I’m faced with a problem.

Is it possible to click on a specific text via Katalon recorder?

This doesn’t work for me: xpath=//a[contains(text(),‘File 1’)]

I want this to be dynamic via a CSV loadVars

Thanks in advance

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.


It is not work because it is not an A tag. As I can see in your enclosing screenshot, it is a h2 tag.


The h2 tag is embedded within a button tag, but yeah, your XPath lists a link (A) tag, so it will never work as is, your XPath should at least be listing the h2 tag instead.