Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/src/guides/locators.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,16 @@ of the collapsed framework class above — these are also recognized:
`getByLabel()`, or `getByTestId()`. Examples: Android `RadioGroup`,
`CheckedTextView`; iOS `DatePicker`.

- **iOS source filtering.** mobilecli currently surfaces only a subset of iOS
classes — `Button`, `TextField`, `SecureTextField`, `SearchField`, `Switch`,
`StaticText`, `Image`, `Icon`, `WebView`, `TextView`. Other rows in the iOS table
(`Slider`, `ProgressIndicator`, `ActivityIndicator`, `Alert`, `Sheet`, `Picker`,
`PickerWheel`, `Table`, `CollectionView`, `Cell`, `Tab`, `NavigationBar`, `Link`)
are filtered out before they reach the query engine, so `getByRole()`
cannot match them yet even though the mapping exists.
- **iOS source filtering.** mobilecli keeps the iOS dump small, so not every
element reaches the query engine. `Button`, `TextField`, `SecureTextField`,
`SearchField`, `TextView`, `Switch`, `WebView`, `Slider`, `Picker` and
`PickerWheel` are always included. Every other class in the iOS table is
included only when it has a label, name or `accessibilityIdentifier` — so
`getByRole('list')` finds a labeled `Table` but not an anonymous one.
`XCUIElementTypeOther` is included only when it carries an
`accessibilityIdentifier`. Requires mobilecli 1.0.13 or later; earlier
versions only surface `Button`, `TextField`, `SecureTextField`, `SearchField`,
`TextView`, `Switch`, `WebView`, `StaticText`, `Image` and `Icon`.

- **`TextView` is platform-ambiguous.** On Android, `TextView` is a static label
(`text`). On iOS, `XCUIElementTypeTextView` is an editable multiline input
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/driver-mobilecli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@mobilewright/protocol": "^0.0.1",
"debug": "^4.4.3",
"ws": "^8.21.3",
"mobilecli": "1.0.12"
"mobilecli": "1.0.13"
},
"devDependencies": {
"@types/debug": "^4.1.13",
Expand Down
Loading