mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
docs(manual): attrs carries raw attribute names on web too
Claude-Session: https://claude.ai/code/session_01A5KmftdEJ49A9z5mF5ESrX
This commit is contained in:
1 parent
78e561ba7e
commit
6fd3fef9fa
1 file changed
+5
-1
@@ -147,7 +147,11 @@ Fields available on every element returned by `find` / `findAll`:
|
||||
- `id` maps to the HTML `id` attribute.
|
||||
- `desc` is derived from `aria-label`, `alt`, or `title`.
|
||||
- `class` is the lowercase HTML tag name (e.g., `button`, `input`).
|
||||
- `attrs` contains all HTML attributes available to CDP.
|
||||
- `attrs` contains all HTML attributes available to CDP, keyed by the name the
|
||||
markup writes (`attrs["data-cents"]`, not `attrs.cents`).
|
||||
- `attrs.hintText` names an editable field the way a user reads it: its
|
||||
`aria-label`, the `<label>` bound to it, its `placeholder`, then its `name`.
|
||||
The `hintText` selector key still matches the `placeholder` attribute alone.
|
||||
|
||||
### KMP (Kotlin Multiplatform)
|
||||
|
||||
|
||||
Reference in new issue
Block a user