diff --git a/README.md b/README.md index 31b1ea1..cee248e 100644 --- a/README.md +++ b/README.md @@ -807,7 +807,59 @@ http.createServer(async (req, res) => {
-Verify (opt-in via --caps=verify) +Test assertions (opt-in via --caps=testing) + + + +- **browser_generate_locator** + - Title: Create locator for element + - Description: Generate locator for the given element to use in tests + - Parameters: + - `element` (string): Human-readable element description used to obtain permission to interact with the element + - `ref` (string): Exact target element reference from the page snapshot + - Read-only: **true** + + + +- **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: **false** + + + +- **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: **false** + + + +- **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: **false** + + + +- **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: **false**
diff --git a/update-readme.js b/update-readme.js index 28a90a7..4354e5c 100644 --- a/update-readme.js +++ b/update-readme.js @@ -29,7 +29,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)', + 'testing': 'Test assertions (opt-in via --caps=testing)', 'tracing': 'Tracing (opt-in via --caps=tracing)', };