diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-05-11 09:57:02 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-05-11 09:57:02 -0500 |
commit | 8df824998f108d8ef0472bcf6c006b3270e2800e (patch) | |
tree | 74259ecb5513d45c5c0573a289cf763ffc70a304 /components/script/script_task.rs | |
parent | 844ac2915eab6573c43e7648cfa94cc2d97fa901 (diff) | |
parent | 9e44206760864da99ff30bd52e70f7da6aad6250 (diff) | |
download | servo-8df824998f108d8ef0472bcf6c006b3270e2800e.tar.gz servo-8df824998f108d8ef0472bcf6c006b3270e2800e.zip |
Auto merge of #5969 - jgraham:webdriver_select_css, r=jdm
Also adds example support for getting the name and text properties of the elements.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5969)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 47c793b2c22..70291d64a48 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -791,6 +791,14 @@ impl ScriptTask { match msg { WebDriverScriptCommand::EvaluateJS(script, reply) => webdriver_handlers::handle_evaluate_js(&page, pipeline_id, script, reply), + WebDriverScriptCommand::FindElementCSS(selector, reply) => + 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::GetElementTagName(node_id, reply) => + webdriver_handlers::handle_get_name(&page, pipeline_id, node_id, reply), + WebDriverScriptCommand::GetElementText(node_id, reply) => + webdriver_handlers::handle_get_text(&page, pipeline_id, node_id, reply), WebDriverScriptCommand::GetTitle(reply) => webdriver_handlers::handle_get_title(&page, pipeline_id, reply) } |