From 19134466e8d7e1fed97fc1e46650e846deefd7e8 Mon Sep 17 00:00:00 2001 From: gmegidish Date: Mon, 21 Sep 2026 11:54:10 +0200 Subject: [PATCH 1/2] feat(core): add progressbar, alert and combobox roles to getByRole --- docs/src/agent-cli/introduction.md | 2 +- docs/src/guides/locators.md | 9 ++++++ packages/cli/skills/mobilewright-cli/SKILL.md | 2 +- .../src/query-engine.test.ts | 32 +++++++++++++++++++ .../mobilewright-core/src/query-engine.ts | 3 ++ 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/src/agent-cli/introduction.md b/docs/src/agent-cli/introduction.md index 493b09a..96ca9f0 100644 --- a/docs/src/agent-cli/introduction.md +++ b/docs/src/agent-cli/introduction.md @@ -156,7 +156,7 @@ Used by `find` and `expect`. Combine several to narrow the match. | Option | Description | |--------|-------------| | `--text ` | Visible text. Use `/regex/i` for a pattern | -| `--role ` | Semantic role: `button`, `textfield`, `text`, `image`, `switch`, `checkbox`, `radio`, `slider`, `list`, `listitem`, `tab`, `link`, `header` | +| `--role ` | Semantic role: `button`, `textfield`, `text`, `image`, `switch`, `checkbox`, `radio`, `slider`, `progressbar`, `alert`, `combobox`, `list`, `listitem`, `tab`, `link`, `header` | | `--name ` | With `--role`: accessible name, plain or `/regex/` | | `--test-id ` | Accessibility identifier (iOS) or resource-id (Android) | | `--label