The action designer is a universal tool for working with page elements, which allows you to select the optimal signs for its search.
To use this feature, you need to have a basic understanding of the HTML markup language.
How to call?
There are two ways to call a designer:
you need to right-click on the element of interest on the page and select to the action designer from the context menu.
2. The second method is from the Element Tree window. Right-click on the desired element and select to the action designer.
When an element is added to the Action Builder, its available properties and their attributes are automatically transferred to the Element Properties window.
1. Document №.
It is recommended to set the value -1 (search in all documents on the page).
2. Form №.
It is also better to set -1 (search in all forms on the page). Choosing this value will make the template more versatile.
Example: on page 3 of the form - search, registration, ordering goods. We need to click on the button in the order form and we have chosen as the value of the “Form” field - 2 (numbering from zero). After some time, a new login form appears on the site, and it is inserted in front of the order form. Number 2 will now be the login form, and our template will either give an error that the button was not found, or (much worse) will click on another button in another form.
The value of the attribute of the selected HTML tag
<div class="visible" id="username"></div>
visible and username - attribute values.
6. Search type
text - search by full or partial text occurrence;
notext - search for elements that do not contain the specified text;
regexp - search using regular expressions By default RegeXp search is case insensitive. To change it you can prepend (?-i) to your expression (this mean “disable case insensitive mode”).
The screenshot shows that after clicking on the Search button, three elements were found, which is not very good - always try to select such search parameters so that in the end there is only one element.
With the help of XPath expressions, you can implement a more universal and resistant to changes in site layout algorithm for finding elements, in comparison with classic search or regular expressions.
Document number and form number are responsible for the same as in the classic search.