Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Katalon Studio Studio Object Properties makes Spying  makes Spying and Recording Web feature easier and more powerful. Enhanced Object Properties allows users to choose objects locating method with Basic or Advanced options, select only preferred object's properties, and manually input XPath or CSS locator. 

Tip
  • Available since version 5.0
  • Katalon Studio Object Properties has the capability to auto-saved the content of Selector Editor when switching between modes of Selection Method
  • Object Identification Best Practices
Basic Mode

Xpath

Katalon Studio set Basic as a default mode. If Basic mode is supports Relative XPath for better object recognition. If an element cannot be consistently located using its direct attributes, Katalon Studio will identify the element by using its more robust neighbors. This method is visually intuitive as it reflects the way users often identify a visible element on the user interface.

If Xpath option is selected, Katalon Studio will automatically generate XPath locator combined with selected object properties to locate that object. 

Image Removed

Users can check/uncheck preferred properties in the object properties table

Image Removed

Verify and Highlight

Katalon Studio Object Properties has a built-in Verify and Highlight feature to help users double-check if the web objects can be located. Katalon a list of Relative Xpath based on your Web Locators Setting to identify the element.

Image Added

Attributes

If Attributes option is selected, Katalon Studio will automatically generate XPath locator that combined all selected object properties to locate that object. You can checked/unchecked preferred properties in the object properties table.

Image Added

CSS

Test engineers who wish to manually input their own CSS locator for test objects can select CSS option. Once selected, object properties table will be collapsed and Selector Editor field becomes editable. Simply provide CSS locator in the Selector Editor text box. 

Same as Attributes option, click on Verify and Highlight button to make sure Katalon Studio can locate the web objects. Katalon Studio will display the message on how many elements are found or NOT found with generated input XPath or CSS locator. If the object is found, it will be highlighted with the red border. 

Image RemovedImage Added

Once finished, click Save to add the object objects to Object Repository as normal.

Advanced Mode (XPath/CSS)

Test engineers who wish to manually input their own XPath or CSS locator for test objects can select one of these two options. Once selected, object properties table will be collapsed and Selector Editor field becomes editable

Image Removed

Next, enter the XPath or CSS locator in the Selector Editor text box. 

Image Removed

Same as Basic mode, click on Verify and Highlight button to make sure Katalon Studio can locate the web objects. 

Katalon

Verify and Highlight

Katalon Studio Object Properties has a built-in Verify and Highlight feature to help users double-check if the web objects can be located. Katalon Studio will display the message on how many elements are are found or  or NOT found with input generated XPath or CSS locator. If the object is found, it will be highlighted with the red border. 

Image RemovedImage Added

Once finished, click click Save to add objects to  to add the object to Object Repository as  as normal.

 

Table of Contents