Files
sanderling/internal/driver/chrome/testdata/element-state.html
T
pj b1e95739ad feat(hierarchy): an element reports whether it masks what is typed into it
ios reads it off SecureTextField, which the companion already sent and
nothing read; web reads input[type=password]. Android cannot: the native
tree mapper drops the password attribute before the sidecar sees it, so
the fact is three-valued and null there rather than a false that would
read as "not secure".
2026-08-18 17:16:55 +05:30

29 lines
1.0 KiB
HTML

<!doctype html>
<html id="page">
<head id="page-head">
<meta id="page-charset" charset="utf-8" />
<title id="page-title">element state</title>
</head>
<body id="page-body">
<!-- toggle-all starts unchecked in the markup and toggle-done starts
checked, so a reader of the `checked` ATTRIBUTE reports each one's
starting value forever and disagrees with both after one click. -->
<input id="toggle-all" type="checkbox" />
<input id="toggle-done" type="checkbox" checked />
<input id="editing" type="text" value="buy milk" />
<input id="secret" type="password" />
<button id="save">save</button>
<button id="cancel" disabled>cancel</button>
<select id="filter">
<option id="filter-all">all</option>
<option id="filter-active" selected>active</option>
</select>
<script id="page-script">
window.__keys__ = [];
document.addEventListener('keydown', function (event) {
window.__keys__.push(event.key);
});
</script>
</body>
</html>