Use CSS Selectors

Hello, I’m trying to manually add a CSS selector but it’s not being found. Is there a certain way to enter it in the Target column or does the recorder only use xpaths?

Also, once I do an export to Katalon Studio do the objects get created in the Object Repository? TIA! :smile:

Hi John

Currently you can’t use CSS selector in the current version of Automation Recorder. It will be fixed in next release which will available shortly

Regards

Hi John,

Thank you for using Katalon Recorder.

CSS selector has been supported since Katalon Record 2.1.0 (released today). The corresponding locator syntax is css=<css_selector>, e.g. css=#first-name will refer to the element with ID “first-name”.

If you have any other questions, don’t hesitate to let us know. We are more than happy to help you.