Mask
Description
Mask - is part of html tag attribute value, which is used by software when searching for the element to click while the task execution.
Properties
By default the search elements occurs by attribute href
values . To search for items from the values of any attributes, you must specify a mask as atribute|mask
.
Additionally
If while the task execution no element at the specified mask is found, then execution stops and the task is failed.
Examples
- Parameters
- Mask
link
is specified - Mask
class|in
is specified
- Conditions
<div> <a href="pages.hml" class="link">Ссылка 1</a> <a href="links.hml" class="link">Ссылка 2</a> <a href="about.hml" class="link">Ссылка 3</a> <a href="/links/other.php">Ссылка 4</a> </div>
- Result
- click on the items «Link 2» or «Link 4» will be made, because their values for
href
attribute contain specified masklink
- click on the items «Link 1», «Link 2» or «Link 3», because their values for
class
attribute contain specified maskin