Skip to main content

Find element (detailed)

Referenced In

Fields

FieldTypeDescriptionDefault
elementTextstringOptional. Display text of the element to find. If combined with selector, the element must match both the text and the selector.
selectorstringOptional. Selector of the element to find. If combined with elementText, the element must match both the text and the selector.
timeoutintegerOptional. Max duration in milliseconds to wait for the element to exist.5000
moveTobooleanOptional. Move to the element. If the element isn't visible, it's scrolled into view.true
clickone of:
- one of:
- string
- object(Click element (detailed))
- boolean
- object(Find element and click)
Optional. Click the element.
typeunknownOptional. Type keys after finding the element. Either a string or an object with a keys field as defined in type. To type in the element, make the element active with the click parameter.

Examples

{
"elementText": "example",
"selector": "example",
"timeout": 5000,
"moveTo": true
}