diff options
Diffstat (limited to 'components/script_traits/webdriver_msg.rs')
-rw-r--r-- | components/script_traits/webdriver_msg.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/components/script_traits/webdriver_msg.rs b/components/script_traits/webdriver_msg.rs index 9716bd220d6..23fa60efddb 100644 --- a/components/script_traits/webdriver_msg.rs +++ b/components/script_traits/webdriver_msg.rs @@ -10,7 +10,8 @@ use hyper_serde::Serde; use ipc_channel::ipc::IpcSender; use msg::constellation_msg::BrowsingContextId; use servo_url::ServoUrl; -use webdriver::common::WebElement; +use std::collections::HashMap; +use webdriver::common::{WebElement, WebFrame, WebWindow}; use webdriver::error::ErrorStatus; #[derive(Debug, Deserialize, Serialize)] @@ -100,17 +101,21 @@ pub enum WebDriverJSValue { Number(f64), String(String), Element(WebElement), + Frame(WebFrame), + Window(WebWindow), ArrayLike(Vec<WebDriverJSValue>), + Object(HashMap<String, WebDriverJSValue>), } #[derive(Debug, Deserialize, Serialize)] pub enum WebDriverJSError { - Timeout, - UnknownType, - JSError, /// Occurs when handler received an event message for a layout channel that is not /// associated with the current script thread BrowsingContextNotFound, + JSError, + StaleElementReference, + Timeout, + UnknownType, } pub type WebDriverJSResult = Result<WebDriverJSValue, WebDriverJSError>; |