Recording with CSS instead of XPATH


I tried hard to google answer, if is possible to set recording in Recorder or Studio by default by CSS (instead of xpath), but I did not find answer.

Can you help please? Is it possible?

Thank you,
Radek Pilmaier

Hi Radek,

As far as I am aware there is no way of defaulting the recorder to capture the CSS instead of the XPath or ID, however, you are able to use the inspect tool within your browser, locate the CSS code, copy and paste the code and then open the object that you want to capture, click the CSS option on the selection method above the XPath and ID.

Sorry if this is not what you are looking for.


I don’t understand why this isn’t possible, I thought Katalon was based on Selenium.
In Selenium IDE it uses CSS selectors automatically. Is there someone who could elaborate on this please?