diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-07-23 14:36:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 14:36:10 -0400 |
commit | dcce668d3a8f348d39981324f2953396b3677a60 (patch) | |
tree | 75f11fff7ebb5c2491ccfd046c6b37770d2d7f2a /components/script/script_thread.rs | |
parent | 4470035f7540602a011b87ec25f4cbb39194c7d5 (diff) | |
parent | 0ec852eb4131f39cab66f13321c18a425c66caad (diff) | |
download | servo-dcce668d3a8f348d39981324f2953396b3677a60.tar.gz servo-dcce668d3a8f348d39981324f2953396b3677a60.zip |
Auto merge of #23820 - georgeroman:link_text_selectors_for_find_element_wd_commands, r=jdm
Implement Link and PartialLink text selectors for FindElement and related WebDriver commands
<!-- 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
<!-- Either: -->
- [X] There are tests for these changes
<!-- 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/23820)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index ae18f075b0e..07626cc80bd 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2019,6 +2019,15 @@ impl ScriptThread { reply, ) }, + WebDriverScriptCommand::FindElementLinkText(selector, partial, reply) => { + webdriver_handlers::handle_find_element_link_text( + &*documents, + pipeline_id, + selector, + partial, + reply, + ) + }, WebDriverScriptCommand::FindElementTagName(selector, reply) => { webdriver_handlers::handle_find_element_tag_name( &*documents, @@ -2035,6 +2044,15 @@ impl ScriptThread { reply, ) }, + WebDriverScriptCommand::FindElementsLinkText(selector, partial, reply) => { + webdriver_handlers::handle_find_elements_link_text( + &*documents, + pipeline_id, + selector, + partial, + reply, + ) + }, WebDriverScriptCommand::FindElementsTagName(selector, reply) => { webdriver_handlers::handle_find_elements_tag_name( &*documents, @@ -2052,6 +2070,19 @@ impl ScriptThread { reply, ) }, + WebDriverScriptCommand::FindElementElementLinkText( + selector, + element_id, + partial, + reply, + ) => webdriver_handlers::handle_find_element_element_link_text( + &*documents, + pipeline_id, + element_id, + selector, + partial, + reply, + ), WebDriverScriptCommand::FindElementElementTagName(selector, element_id, reply) => { webdriver_handlers::handle_find_element_element_tag_name( &*documents, @@ -2070,6 +2101,19 @@ impl ScriptThread { reply, ) }, + WebDriverScriptCommand::FindElementElementsLinkText( + selector, + element_id, + partial, + reply, + ) => webdriver_handlers::handle_find_element_elements_link_text( + &*documents, + pipeline_id, + element_id, + selector, + partial, + reply, + ), WebDriverScriptCommand::FindElementElementsTagName(selector, element_id, reply) => { webdriver_handlers::handle_find_element_elements_tag_name( &*documents, |