Implement webdriver element in view (#38329)

Implement step 6 of `ElementClick`:
https://w3c.github.io/webdriver/#dfn-element-click

Tests:
`tests/wpt/tests/webdriver/tests/classic/element_click/interactability.py`

cc: @xiaochengh

Signed-off-by: batu_hoang <hoang.binh.trong@huawei.com>
This commit is contained in:
batu_hoang 2025-07-31 12:27:02 +08:00 committed by GitHub
parent 8008d5aa85
commit 8e27fd48cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 29 deletions

View file

@ -2141,7 +2141,7 @@ impl Handler {
let (sender, receiver) = ipc::channel().unwrap();
// Steps 1 - 7 + Step 8 for <option>
// Steps 3-7 + Step 8 for <option> are handled in script thread.
let cmd = WebDriverScriptCommand::ElementClick(element.to_string(), sender);
self.browsing_context_script_command(cmd, VerifyBrowsingContextIsOpen::No)?;