get_locator_guidance
Guide locator and selector usage for Browser, Selenium, Appium, PlatynUI, and RequestsLibrary, with visual validation advice for screenshots.
Instructions
Provide locator/selector guidance for Browser, SeleniumLibrary, AppiumLibrary, PlatynUI.BareMetal, or RequestsLibrary.
For API testing, call with library="requests" (or "api") to get a RequestsLibrary request/response cookbook — session setup, response-field access (${resp.json()["field"]}), the $resp-in-Evaluate rule, Status Should Be, JSON body/headers, the Cookie token header, and expected_status= for non-2xx — BEFORE writing Evaluate-based assertions.
For VISUAL validation, call with library="visual" (or "screenshot") to learn WHEN a screenshot beats the DOM/ARIA tree (canvas/image text, layout/overlap, obscured elements, color, charts) and the dual read-back pattern — useful for any UI library (Browser/Selenium/Appium/PlatynUI) when a multimodal model drives rf-mcp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | No | Target library ("Browser", "SeleniumLibrary", "AppiumLibrary", "PlatynUI.BareMetal", or "RequestsLibrary"/"api"). Case-insensitive. | browser |
| keyword_name | No | Optional keyword name for context-specific hints. | |
| error_message | No | Optional error text to tailor guidance (e.g., from a failed keyword). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||