mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Implement GetComputedRole in wd (#36552)
Implement Webdriver Get Computed Role. [spec](https://w3c.github.io/webdriver/#get-computed-role) Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com> Co-authored-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com>
This commit is contained in:
parent
cef7aa58ec
commit
15199ba2ef
4 changed files with 40 additions and 0 deletions
|
@ -2253,6 +2253,14 @@ impl ScriptThread {
|
|||
WebDriverScriptCommand::GetActiveElement(reply) => {
|
||||
webdriver_handlers::handle_get_active_element(&documents, pipeline_id, reply)
|
||||
},
|
||||
WebDriverScriptCommand::GetComputedRole(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_computed_role(
|
||||
&documents,
|
||||
pipeline_id,
|
||||
node_id,
|
||||
reply,
|
||||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetPageSource(reply) => {
|
||||
webdriver_handlers::handle_get_page_source(&documents, pipeline_id, reply, can_gc)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue