geckodriver: Update for API changes in WebDriver 0.10

Source-Repo: https://github.com/mozilla/geckodriver
Source-Revision: df504bec258cb73db97c962a37b8646a13d556dc

--HG--
extra : rebase_source : 22126f61f4adefbdea1fb72787693789bc2cd2af
This commit is contained in:
James Graham 2016-05-23 14:15:09 +01:00
Родитель 38e00294e1
Коммит 9b1d7b3bd6
2 изменённых файлов: 5 добавлений и 5 удалений

4
testing/geckodriver/Cargo.lock сгенерированный
Просмотреть файл

@ -12,7 +12,7 @@ dependencies = [
"regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"webdriver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
"webdriver 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"zip 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)",
]
@ -366,7 +366,7 @@ dependencies = [
[[package]]
name = "webdriver"
version = "0.9.0"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"hyper 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)",

Просмотреть файл

@ -37,7 +37,7 @@ use webdriver::command::WebDriverCommand::{
DeleteCookies, DeleteCookie, SetTimeouts, DismissAlert,
AcceptAlert, GetAlertText, SendAlertText, TakeScreenshot, Extension};
use webdriver::command::{
CapabilitiesParameters, GetParameters, WindowSizeParameters, SwitchToWindowParameters,
NewSessionParameters, GetParameters, WindowSizeParameters, SwitchToWindowParameters,
SwitchToFrameParameters, LocatorParameters, JavascriptCommandParameters,
GetCookieParameters, AddCookieParameters, TimeoutsParameters,
TakeScreenshotParameters};
@ -266,7 +266,7 @@ impl MarionetteHandler {
}
fn create_connection(&mut self, session_id: &Option<String>,
capabilities: &CapabilitiesParameters) -> WebDriverResult<()> {
capabilities: &NewSessionParameters) -> WebDriverResult<()> {
let profile = try!(self.load_profile(capabilities));
match self.start_browser(profile) {
Err(e) => {
@ -322,7 +322,7 @@ impl MarionetteHandler {
Ok(())
}
pub fn load_profile(&self, capabilities: &CapabilitiesParameters) -> WebDriverResult<Option<Profile>> {
pub fn load_profile(&self, capabilities: &NewSessionParameters) -> WebDriverResult<Option<Profile>> {
let profile_opt = capabilities.get("firefox_profile");
if profile_opt.is_none() {
return Ok(None);