aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-03-11 20:47:27 -0400
committerGitHub <noreply@github.com>2019-03-11 20:47:27 -0400
commit9513544e91998243545e9d08234edcc6d2a4b0d8 (patch)
treeb3a94ab7d3e72dbdafee7e3f1ae33c268202a1e7 /components/script/script_thread.rs
parent9ac8ea61c7e36f0a7d99849b1fda536e64d3b1c8 (diff)
parent46cd0d17ee728c2ff28553e560b8d3458149f76c (diff)
downloadservo-9513544e91998243545e9d08234edcc6d2a4b0d8.tar.gz
servo-9513544e91998243545e9d08234edcc6d2a4b0d8.zip
Auto merge of #23008 - georgeroman:implement_webdriver_find_elem_from_elem, r=Manishearth
Implement WebDriver FindElementFromElement command <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23008) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 822d194b0e2..9e20b09ef20 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1859,6 +1859,15 @@ impl ScriptThread {
reply,
)
},
+ WebDriverScriptCommand::FindElementElementCSS(selector, element_id, reply) => {
+ webdriver_handlers::handle_find_element_element_css(
+ &*documents,
+ pipeline_id,
+ element_id,
+ selector,
+ reply,
+ )
+ },
WebDriverScriptCommand::FocusElement(element_id, reply) => {
webdriver_handlers::handle_focus_element(
&*documents,