зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #12218 - WebDriver: Fix POST /session/:session_id/elements to return multiple (from JRaspass:master); r=jdm
Very unfamiliar with rust, but I'm trying to test servo with my Perl WebDriver module ( https://metacpan.org/pod/WebDriver::Tiny ) and fix any issues I come across. I hope to make my next commit implement find with the location strategy of link text. --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because I don't believe there are WebDriver tests, I'd love to be wrong and pointed in the right direction though :-P <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 1e2b9773d693b19d0c804d16098d15d0945cdd79
This commit is contained in:
Родитель
fb4a37ba95
Коммит
0a39e8e7f7
|
@ -561,8 +561,8 @@ impl Handler {
|
|||
}
|
||||
|
||||
let (sender, receiver) = ipc::channel().unwrap();
|
||||
try!(self.frame_script_command(WebDriverScriptCommand::FindElementCSS(parameters.value.clone(),
|
||||
sender)));
|
||||
try!(self.frame_script_command(WebDriverScriptCommand::FindElementsCSS(parameters.value.clone(),
|
||||
sender)));
|
||||
match receiver.recv().unwrap() {
|
||||
Ok(value) => {
|
||||
let resp_value: Vec<Json> = value.into_iter().map(
|
||||
|
|
Загрузка…
Ссылка в новой задаче