mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
docs(manual): list className among the cross-platform aliases
the key was already typed on the spec surface and already resolved on web, and the alias table said nothing about which attribute it reads.
This commit is contained in:
1 parent
2cbd60d70b
commit
5a7c223464
1 file changed
+2
-1
@@ -82,7 +82,7 @@ Every key-value pair must match. A key means the same thing here as in the strin
|
|||||||
|
|
||||||
`text` is ANDed like any other key, and the innermost rule then holds over what the whole selector matched: `{ class: "status", text: "Sent" }` drops a row whose badge carries the class and the text both, and keeps one whose badge carries the text alone.
|
`text` is ANDed like any other key, and the innermost rule then holds over what the whole selector matched: `{ class: "status", text: "Sent" }` drops a row whose badge carries the class and the text both, and keeps one whose badge carries the text alone.
|
||||||
|
|
||||||
Known attribute names are typed; you get autocomplete on `testTag`, `text`, `content-desc`, the boolean states (`clickable`, `enabled`, `focused`, `checked`, `selected`, `secure`), and the cross-platform aliases (`identifier`, `accessibilityIdentifier`, `accessibilityText`, `accessibilityLabel`, `label`, `resource-id`, `class`, `elementType`, `package`, `placeholderValue`, `hintText`). Boolean state attributes accept a native `true` / `false`. Other attribute keys still type-check as a string-valued fallback so raw driver attributes remain reachable.
|
Known attribute names are typed; you get autocomplete on `testTag`, `text`, `content-desc`, the boolean states (`clickable`, `enabled`, `focused`, `checked`, `selected`, `secure`), and the cross-platform aliases (`identifier`, `accessibilityIdentifier`, `accessibilityText`, `accessibilityLabel`, `label`, `resource-id`, `class`, `className`, `elementType`, `package`, `placeholderValue`, `hintText`). Boolean state attributes accept a native `true` / `false`. Other attribute keys still type-check as a string-valued fallback so raw driver attributes remain reachable.
|
||||||
|
|
||||||
A boolean state matches only where the platform reports it. `{secure: true}` names the password entry and `{secure: false}` names an editable field that is not one, so neither value names an element that is no field at all, and neither matches anything on Android, which reports the fact for nothing.
|
A boolean state matches only where the platform reports it. `{secure: true}` names the password entry and `{secure: false}` names an editable field that is not one, so neither value names an element that is no field at all, and neither matches anything on Android, which reports the fact for nothing.
|
||||||
|
|
||||||
@@ -118,6 +118,7 @@ These key aliases are resolved automatically so selectors work across platforms
|
|||||||
| `accessibilityLabel` | `accessibilityText` |
|
| `accessibilityLabel` | `accessibilityText` |
|
||||||
| `identifier` | `resource-id` |
|
| `identifier` | `resource-id` |
|
||||||
| `accessibilityIdentifier` | `resource-id` |
|
| `accessibilityIdentifier` | `resource-id` |
|
||||||
|
| `className` | `class` |
|
||||||
|
|
||||||
## AccessibilityElement fields
|
## AccessibilityElement fields
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user