element
and mutations like click
, fill
, etc.
selector
"div.item[data-id='123']"
or "#submitButton"
.
xpath
//button[@id='submit']
. While the generic selector
field can also accept XPath prefixed with xpath=
, this xpath
field is dedicated exclusively to XPath expressions.
text
"Login"
or "Add to Cart"
role
"button"
, "link"
, "navigation"
.
label
"Close notification"
.
placeholder
"Enter your username"
.
altText
<img>
elements by their alt attribute. Example: "User profile picture"
.
title
"Click to learn more"
.
testId
"login-form-submit"
.