webdriver: Improve "element click" by using container + Upgrade outdated test (#38436)

- According to
[spec](https://w3c.github.io/webdriver/#ref-for-dfn-in-view-3), we
should use container instead of element itself to determine "in-view".
- Updated `test_element_intercepted_no_pointer_events` in
`element_click/interactability.py` to expect "element not interactable".
This was outdated with spec as original test was written 7 years ago
https://github.com/web-platform-tests/wpt/pull/11453.


Testing: new passing cases for `<option>`, `<select>`.

---------

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
Euclid Ye 2025-08-04 16:12:50 +08:00 committed by GitHub
parent 79a45c7da3
commit c59ee57b5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 46 deletions

View file

@ -943609,7 +943609,7 @@
]
],
"interactability.py": [
"65f8a9015eeaa6a450e603d1ca6e1914516eb506",
"aefaa1fd8e8aaddc6eaf336b5f1d8d820665b907",
[
null,
{}