aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-05-08 20:05:21 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-05-11 17:31:23 +0100
commit6e639de664fc17624a69624e49952d68fcd0937d (patch)
tree6b5019e80b04251f368286d353cd94bf8335459c /components/script/script_task.rs
parent8df824998f108d8ef0472bcf6c006b3270e2800e (diff)
downloadservo-6e639de664fc17624a69624e49952d68fcd0937d.tar.gz
servo-6e639de664fc17624a69624e49952d68fcd0937d.zip
Add support for getActiveElement webdriver command
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 70291d64a48..10568e308c6 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -795,6 +795,8 @@ impl ScriptTask {
webdriver_handlers::handle_find_element_css(&page, pipeline_id, selector, reply),
WebDriverScriptCommand::FindElementsCSS(selector, reply) =>
webdriver_handlers::handle_find_elements_css(&page, pipeline_id, selector, reply),
+ WebDriverScriptCommand::GetActiveElement(reply) =>
+ webdriver_handlers::handle_get_active_element(&page, pipeline_id, reply),
WebDriverScriptCommand::GetElementTagName(node_id, reply) =>
webdriver_handlers::handle_get_name(&page, pipeline_id, node_id, reply),
WebDriverScriptCommand::GetElementText(node_id, reply) =>