mirror of
https://github.com/servo/servo.git
synced 2025-06-27 10:33:39 +01:00
script: Support webdriver's Get Element Text operation for non-HTML elements (#37470)
Fix `WebDriverScriptCommand::GetElementText` similar to https://github.com/servo/servo/pull/37452#discussion_r2146350739, by correctly retrieving rendered text. Testing: `./mach test-wpt -r --log-raw "D:\servo test log\gt_ele_txt.txt" webdriver/tests/classic/get_element_text --product servodriver` Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
810c0e6891
commit
9352a9db7c
3 changed files with 10 additions and 3 deletions
|
@ -2461,7 +2461,7 @@ impl ScriptThread {
|
|||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetElementText(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_text(&documents, pipeline_id, node_id, reply)
|
||||
webdriver_handlers::handle_get_text(&documents, pipeline_id, node_id, reply, can_gc)
|
||||
},
|
||||
WebDriverScriptCommand::GetElementInViewCenterPoint(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_element_in_view_center_point(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue