id assertion (idIs)
Asserts the identifier of the last grabbed element.
Functions
| function | description |
|---|---|
select(selector).idIs(expected, strict:, waitSeconds:) |
Asserts the identifier of the element equals expected. The target is the element grabbed last; also available as the implicit idIs(expected, strict:, waitSeconds:). |
For the strings the implicit form cannot take as expected values, see Text Assertion.
Comparison follows the same "same if it looks the same" rule as text assertions (see
Text Assertion); pass strict: true to disable normalization.
Example
exist("#login_btn").idIs("login_btn")
select("#row_01"); idIs("row_01")