webdriver: Merge pull request #22 from AutomatedTester/alert_parameter
authorAutomatedTester <david.burns@theautomatedtester.co.uk>
Tue, 19 Jan 2016 15:27:48 +0000
changeset 428053 2571871b62eddafbb98809e8d04579c9904a9d1b
parent 428052 e3dd00b7c196b69a4430b9472eba4f2a5484d4a9
child 428054 369b5a7c6050951e4f11fbf4b939de4f7ac77bed
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
webdriver: Merge pull request #22 from AutomatedTester/alert_parameter Update parameter being used in alert sendKeys Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: 875ac848675d72d09d2b9b20ce2fcd4755090131
testing/webdriver/src/command.rs
--- a/testing/webdriver/src/command.rs
+++ b/testing/webdriver/src/command.rs
@@ -827,21 +827,21 @@ pub struct SendAlertTextParameters {
     message: String
 }
 
 impl Parameters for SendAlertTextParameters {
     fn from_json(body: &Json) -> WebDriverResult<SendAlertTextParameters> {
         let data = try_opt!(body.as_object(), ErrorStatus::InvalidArgument,
                             "Message body was not an object");
         let keys = try_opt!(
-            try_opt!(data.get("message"),
+            try_opt!(data.get("text"),
                      ErrorStatus::InvalidArgument,
-                     "Missing 'message' parameter").as_string(),
+                     "Missing 'text' parameter").as_string(),
             ErrorStatus::InvalidArgument,
-            "'message' not a string").to_string();
+            "'text' not a string").to_string();
         return Ok(SendAlertTextParameters {
             message: keys
         })
     }
 }
 
 impl ToJson for SendAlertTextParameters {
     fn to_json(&self) -> Json {