Properties Library

Answers to yours questions / Exceptions

Property NameProperty ValueWhen to useHow it works

byValue

TRUE / FALSE

  1. When the user required value is saved in the attribute "value"

  2. When the value was saved in the hidden attribute

It finds the web element matching the with the attribute value == given test data Note : Works only for select tags

byIndex

TRUE / FALSE

  1. When the user required value is in maintained in a fixed index all the time

It finds the web element matching with the given index number in the tets data Note : Works only for select tags

byname

TRUE / FALSE

When the user required value is saved in the attribute "name"

It finds the web element matching the with the attribute value == given test data Note : Works only for select tags

tagName

YOUR TAG NAME

It is a special property when the dropdown is not authentic. Here user has to provied the tagName value. Ex : dropdown has values in "li" tags. Then we have to configure as tagName : li

QATTS frames the XPATH locator internally with the test data given. Finds and clicks the element.

  1. Contains

  2. tagName

  1. TRUE / FALSE

  2. YOUR TAG NAME

This works same as above. The only difference is. When we have the partial text provided in the test data. This will work

QATTS frames the XPATH locator internally with the test data given. Finds and clicks the element.

custom

YOUR_XPATH

When we have to write a complex XPATH and then replace a value inside it using parameterization ${} in the given locator

QATTS evaluates the given XPATH. Finds and clicks the element.

Note : When configuring the tagName, contains, Custom -> Main locator should be configured to match the main click and tagName should match the value.

Last updated