mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Implement webdriver extract script arguments (#38357)
Fix script parsing step. Implement webdriver `extract script arguments`. Implement `deserialize_web_element` and `deserialize_shadow_root` from script command argument. Testing: `/tests/wpt/tests/webdriver/tests/classic/execute_script/` `/tests/wpt/tests/webdriver/tests/classic/execute_async_script/` cc: @xiaochengh --------- Signed-off-by: batu_hoang <hoang.binh.trong@huawei.com>
This commit is contained in:
parent
c0d884ddb2
commit
9effdce5a1
9 changed files with 228 additions and 169 deletions
|
@ -2396,6 +2396,22 @@ impl ScriptThread {
|
|||
can_gc,
|
||||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetKnownElement(element_id, reply) => {
|
||||
webdriver_handlers::handle_get_known_element(
|
||||
&documents,
|
||||
pipeline_id,
|
||||
element_id,
|
||||
reply,
|
||||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetKnownShadowRoot(element_id, reply) => {
|
||||
webdriver_handlers::handle_get_known_shadow_root(
|
||||
&documents,
|
||||
pipeline_id,
|
||||
element_id,
|
||||
reply,
|
||||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetActiveElement(reply) => {
|
||||
webdriver_handlers::handle_get_active_element(&documents, pipeline_id, reply)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue