diff options
author | James Graham <james@hoppipolla.co.uk> | 2015-06-16 17:32:42 +0100 |
---|---|---|
committer | James Graham <james@hoppipolla.co.uk> | 2015-11-16 22:48:26 +0000 |
commit | 09b9293b092a89aaca651f3ce655e5a97878e52c (patch) | |
tree | 67cf816cd300717b8d5c8d3d364680db1ce230e9 /components/script/script_task.rs | |
parent | db94fda10e3351c96a0df61099d2fdfa481cc62b (diff) | |
download | servo-09b9293b092a89aaca651f3ce655e5a97878e52c.tar.gz servo-09b9293b092a89aaca651f3ce655e5a97878e52c.zip |
Implement support for WebDriver send keys command.
Supports sending keys to an element. The specification here is still
rather unfinished so the error handling and so on in this code will
need iteration as it becomes clearer what the expected behaviour is.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index c3ddfdad6b3..d2fc0a93917 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1086,6 +1086,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::FocusElement(element_id, reply) => + webdriver_handlers::handle_focus_element(&page, pipeline_id, element_id, reply), WebDriverScriptCommand::GetActiveElement(reply) => webdriver_handlers::handle_get_active_element(&page, pipeline_id, reply), WebDriverScriptCommand::GetElementTagName(node_id, reply) => |