diff --git a/README.md b/README.md index e460494..4871f6a 100644 --- a/README.md +++ b/README.md @@ -705,5 +705,52 @@ http.createServer(async (req, res) => { +
+Verify (opt-in via --caps=verify) + + + +- **browser_verify_element_visible** + - Title: Verify element visible + - Description: Verify element is visible on the page + - Parameters: + - `role` (string): ROLE of the element. Can be found in the snapshot like this: `- {ROLE} "Accessible Name":` + - `accessibleName` (string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"` + - Read-only: **true** + + + +- **browser_verify_list_visible** + - Title: Verify list visible + - Description: Verify list is visible on the page + - Parameters: + - `element` (string): Human-readable list description + - `ref` (string): Exact target element reference that points to the list + - `items` (array): Items to verify + - Read-only: **true** + + + +- **browser_verify_text_visible** + - Title: Verify text visible + - Description: Verify text is visible on the page. Prefer browser_verify_element_visible if possible. + - Parameters: + - `text` (string): TEXT to verify. Can be found in the snapshot like this: `- role "Accessible Name": {TEXT}` or like this: `- text: {TEXT}` + - Read-only: **true** + + + +- **browser_verify_value** + - Title: Verify value + - Description: Verify element value + - Parameters: + - `type` (string): Type of the element + - `element` (string): Human-readable element description + - `ref` (string): Exact target element reference that points to the element + - `value` (string): Value to verify. For checkbox, use "true" or "false". + - Read-only: **true** + +
+ diff --git a/utils/update-readme.js b/utils/update-readme.js index 0bb1b01..4e0648b 100644 --- a/utils/update-readme.js +++ b/utils/update-readme.js @@ -30,6 +30,7 @@ const capabilities = { 'core-install': 'Browser installation', 'vision': 'Coordinate-based (opt-in via --caps=vision)', 'pdf': 'PDF generation (opt-in via --caps=pdf)', + 'verify': 'Verify (opt-in via --caps=verify)', }; const toolsByCapability = Object.fromEntries(Object.entries(capabilities).map(([capability, title]) => [title, allTools.filter(tool => tool.capability === capability).sort((a, b) => a.schema.name.localeCompare(b.schema.name))]));