diff --git a/servo/components/webdriver_server/lib.rs b/servo/components/webdriver_server/lib.rs index 7e060d74c6af..586bbac1def3 100644 --- a/servo/components/webdriver_server/lib.rs +++ b/servo/components/webdriver_server/lib.rs @@ -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 = value.into_iter().map(