When a locator is constructed, the attribute type is automatically assigned based on the technology domain that your application
uses. The attribute type and value determines how the locator identifies objects within your tests.
Supported attributes for Web applications include:
- caption (supports wildcards
? and
* )
- all DOM attributes (supports wildcards
? and
* )
Note: Empty spaces are handled differently by each browser. As a result, the
textContent and
innerText attributes have been normalized. Empty spaces are skipped or replaced by a single space if an empty space is followed by
another empty space. Empty spaces are detected spaces, carriage returns, line feeds, and tabs. The matching of such values
is normalized also. For example:
<a>abc
abc</a>
Uses the following locator:
//A[@innerText='abc abc']