session_find_element
Find one element in a WebDriver session and return the elementId that session_click and session_send_keys take. using selects the strategy — "css selector", "xpath", "id", "name", "link text", "partial link text", "tag name" or "class name" — and value is the query for it. Returns the FIRST match only, and errors rather than returning empty when nothing matches, so treat an error as 'not on the page yet' and retry after the page settles. Works on browser sessions and on mobile sessions, where the same strategies address native elements. Addressed by sessionId; the coordinate-free equivalents on a real device are device_find_element / ios_find_element (by udid).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| using | Yes | Locator strategy (e.g. "css selector", "xpath", "id") | |
| value | Yes | Locator value (e.g. "#login-btn", "//button[@id='submit']") | |
| sessionId | Yes | Session ID |