script(webdriver): Check if element is disabled based on WebDriver specification (#38490)

Checking if an element is disabled based on
[spec](https://w3c.github.io/webdriver/#dfn-disabled). Fix the command
`Is Element Enabled`.

Testing: Covered in WPT
(`./tests/wpt/tests/webdriver/tests/classic/is_element_enabled/enabled.py`)

---------

Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-08-11 12:41:04 +08:00 committed by GitHub
parent 2e5f5e7d1c
commit de73d4a25c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 7 deletions

View file

@ -2,8 +2,5 @@
[test_no_browsing_context]
expected: FAIL
[test_option_with_select[disabled\]]
expected: FAIL
[test_optgroup_with_select[disabled\]]
[test_option_with_optgroup[disabled\]]
expected: FAIL