element_find
Find a single element using locator syntax (CSS, XPath, text, etc.). Returns element_id for direct future interaction without re-finding.
Instructions
Find a single element and return its info including element_id for future reference.
Locator syntax: #id | .class | @attr=val | text:str | tag:name |
css:selector | xpath:expr | @@a@@b (AND) | @|a@|b (OR)
Use element_id from result to interact with the element without re-finding it.
If parent is provided, finds the locator within the parent element (two-step find).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| parent | No | ||
| tab_id | No | ||
| locator | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |