From f7258e4fccf9b7f8efc4b3a33203cacfe47d647a Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 23 Oct 2015 00:48:55 +0100 Subject: Add support for getting an element's computed style through WebDriver. --- components/script/script_task.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 043c0574be1..86e1493409c 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1108,6 +1108,8 @@ impl ScriptTask { webdriver_handlers::handle_get_name(&page, pipeline_id, node_id, reply), WebDriverScriptCommand::GetElementAttribute(node_id, name, reply) => webdriver_handlers::handle_get_attribute(&page, pipeline_id, node_id, name, reply), + WebDriverScriptCommand::GetElementCSS(node_id, name, reply) => + webdriver_handlers::handle_get_css(&page, pipeline_id, node_id, name, reply), WebDriverScriptCommand::GetElementText(node_id, reply) => webdriver_handlers::handle_get_text(&page, pipeline_id, node_id, reply), WebDriverScriptCommand::GetFrameId(frame_id, reply) => -- cgit v1.2.3