mirror of
https://github.com/servo/servo.git
synced 2025-07-25 00:00:20 +01:00
Implement GetElementProperty WebDriver command
This commit is contained in:
parent
ef7b58f0cd
commit
e34a15c5ef
7 changed files with 107 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue