Starting 5.3, Katalon Studio has allowed users to set default Web Locator in Project Setting > Test Design > Web Locators.
This setting helps the user eliminate the repetitive tasks of selecting/deselecting locators for each captured objects while recording or spying the AUT. The locators in this setting will be applied to all captured objects in Record and Spy Web.
Katalon Studio supports Relative XPath for better object recognition. If an element cannot be consistently located using its direct attributes, Katalon Studio will identify by using its more robust neighbors. That is a simple but powerful idea behind the New locator method introduced in Katalon Studio. This method is visually intuitive as it reflects the way users often identify a visible element on the user interface.
Drag and drop any XPath on the list to change its priority. Katalon Studio will use the first XPath as default to locate the elements, and the rest of the list will be leveraged to locate the element if the first one failed.
Captured objects will have properties listed as below:
Katalon Studio also supports the regular XPath with locator strategies available in Selenium. Custom locators can be added to the list as well. Pre-selected locators are those recommended by the Katalon team.