Skip to navigation

find

Referenced In

Fields

FieldTypeDescriptionDefault
findone of:
- string
- object(Find element (detailed))
Required. Find an element based on display text or a selector, then optionally interact with it.—

Examples

{
"find": "Find me!"
}
{
"find": {
"selector": "[title=Search]"
}
}
{
"find": {
"selector": "[title=Search]",
"timeout": 10000,
"elementText": "Search",
"moveTo": true,
"click": true,
"type": "shorthair cat"
}
}
{
"find": {
"selector": "[title=Search]",
"click": {
"button": "right"
}
}
}
{
"find": {
"selector": "[title=Search]",
"timeout": 10000,
"elementText": "Search",
"moveTo": true,
"click": true,
"type": {
"keys": [
"shorthair cat"
],
"inputDelay": 100
}
}
}
{
"find": {
"elementId": "/^user-[0-9]+$/",
"elementClass": [
"admin",
"/^level-[1-5]$/"
],
"elementAttribute": {
"data-active": true,
"data-score": "/^[0-9]+$/"
},
"timeout": 8000,
"moveTo": false
}
}