Implement GetElementProperty WebDriver command

This commit is contained in:
George Roman 2019-06-18 22:02:27 +03:00
parent ef7b58f0cd
commit e34a15c5ef
7 changed files with 107 additions and 18 deletions

View file

@ -33,6 +33,7 @@ pub enum WebDriverScriptCommand {
GetCookie(String, IpcSender<Vec<Serde<Cookie<'static>>>>),
GetCookies(IpcSender<Vec<Serde<Cookie<'static>>>>),
GetElementAttribute(String, String, IpcSender<Result<Option<String>, ()>>),
GetElementProperty(String, String, IpcSender<Result<WebDriverJSValue, ()>>),
GetElementCSS(String, String, IpcSender<Result<String, ()>>),
GetElementRect(String, IpcSender<Result<Rect<f64>, ()>>),
GetElementTagName(String, IpcSender<Result<String, ()>>),
@ -51,7 +52,7 @@ pub enum WebDriverCookieError {
UnableToSetCookie,
}
#[derive(Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub enum WebDriverJSValue {
Undefined,
Null,