geckodriver: cargo, marionette: upgrade to webdriver 0.25.0

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

--HG--
extra : rebase_source : 683f5d9ab463dd2a00cde705bcaede68ecbaecb0
This commit is contained in:
Andreas Tolfsen 2017-04-10 13:36:27 +01:00
Родитель 54ea515085
Коммит c46c437826
3 изменённых файлов: 11 добавлений и 8 удалений

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

@ -17,7 +17,7 @@ dependencies = [
"slog-stdlog 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "slog-stdlog 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"slog-stream 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "slog-stream 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"webdriver 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)", "webdriver 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)",
"zip 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)", "zip 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@ -642,7 +642,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "webdriver" name = "webdriver"
version = "0.24.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"backtrace 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "backtrace 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
@ -769,7 +769,7 @@ dependencies = [
"checksum uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "78c590b5bd79ed10aad8fb75f078a59d8db445af6c743e55c4a53227fc01c13f" "checksum uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "78c590b5bd79ed10aad8fb75f078a59d8db445af6c743e55c4a53227fc01c13f"
"checksum vec_map 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8cdc8b93bd0198ed872357fb2e667f7125646b1762f16d60b2c96350d361897" "checksum vec_map 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8cdc8b93bd0198ed872357fb2e667f7125646b1762f16d60b2c96350d361897"
"checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
"checksum webdriver 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5ec09fff6c7a59e9a8a4ad0439d5f308d769ddca29857170e101b1fc6735150f" "checksum webdriver 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b98779bcc114de9a87d6180d4e02d8d5212d0bf81cb777cdea0edcc7bcfeca11"
"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
"checksum winreg 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e63857fb213f619b4c4fff86b158285c76766aac7e7474967e92fb6dbbfeefe9" "checksum winreg 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e63857fb213f619b4c4fff86b158285c76766aac7e7474967e92fb6dbbfeefe9"

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

@ -27,5 +27,5 @@ slog-atomic = "0.4"
slog-stdlog = "1" slog-stdlog = "1"
slog-stream = "1" slog-stream = "1"
uuid = "0.1.18" uuid = "0.1.18"
webdriver = "0.24" webdriver = "0.25"
zip = "0.1" zip = "0.1"

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

@ -782,11 +782,13 @@ impl MarionetteSession {
pub fn error_from_string(&self, error_code: &str) -> ErrorStatus { pub fn error_from_string(&self, error_code: &str) -> ErrorStatus {
match error_code { match error_code {
"element click intercepted" => ErrorStatus::ElementClickIntercepted,
"element not interactable" | "element not visible" => ErrorStatus::ElementNotInteractable,
"element not selectable" => ErrorStatus::ElementNotSelectable, "element not selectable" => ErrorStatus::ElementNotSelectable,
"element not visible" => ErrorStatus::ElementNotVisible, "insecure certificate" => ErrorStatus::InsecureCertificate,
"invalid argument" => ErrorStatus::InvalidArgument, "invalid argument" => ErrorStatus::InvalidArgument,
"invalid cookie domain" => ErrorStatus::InvalidCookieDomain, "invalid cookie domain" => ErrorStatus::InvalidCookieDomain,
"invalid element coordinates" => ErrorStatus::InvalidElementCoordinates, "invalid coordinates" | "invalid element coordinates" => ErrorStatus::InvalidCoordinates,
"invalid element state" => ErrorStatus::InvalidElementState, "invalid element state" => ErrorStatus::InvalidElementState,
"invalid selector" => ErrorStatus::InvalidSelector, "invalid selector" => ErrorStatus::InvalidSelector,
"invalid session id" => ErrorStatus::InvalidSessionId, "invalid session id" => ErrorStatus::InvalidSessionId,
@ -800,12 +802,13 @@ impl MarionetteSession {
"session not created" => ErrorStatus::SessionNotCreated, "session not created" => ErrorStatus::SessionNotCreated,
"stale element reference" => ErrorStatus::StaleElementReference, "stale element reference" => ErrorStatus::StaleElementReference,
"timeout" => ErrorStatus::Timeout, "timeout" => ErrorStatus::Timeout,
"unable to capture screen" => ErrorStatus::UnableToCaptureScreen,
"unable to set cookie" => ErrorStatus::UnableToSetCookie, "unable to set cookie" => ErrorStatus::UnableToSetCookie,
"unexpected alert open" => ErrorStatus::UnexpectedAlertOpen, "unexpected alert open" => ErrorStatus::UnexpectedAlertOpen,
"unknown command" => ErrorStatus::UnknownCommand,
"unknown error" => ErrorStatus::UnknownError, "unknown error" => ErrorStatus::UnknownError,
"unknown command" => ErrorStatus::UnknownPath,
"unsupported operation" => ErrorStatus::UnsupportedOperation, "unsupported operation" => ErrorStatus::UnsupportedOperation,
_ => ErrorStatus::UnknownError _ => ErrorStatus::UnknownError,
} }
} }
} }