webdriver: Add handle user prompt for some command (#38591)

- When taking element screenshot, we should handle the user prompt
before getting the element bounding rectangle
- Handle user prompt for `is element enabled` and `is element selected`

Testing:
`./tests/wpt/tests/webdriver/tests/classic/{take_element_screenshot,
is_element_enabled, is_element_selected}/user_prompts.py`

Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-08-13 04:31:43 +08:00 committed by GitHub
parent 4b91dc6d82
commit bcd569f116
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 17 deletions

View file

@ -1,2 +0,0 @@
[user_prompts.py]
expected: TIMEOUT

View file

@ -1,2 +0,0 @@
[user_prompts.py]
expected: TIMEOUT

View file

@ -1,2 +0,0 @@
[user_prompts.py]
expected: TIMEOUT