mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Make WebDriver Get() command wait on pages loading before returning.
This makes using WebDriver significantly less racy. Also refactors the message structure a little
This commit is contained in:
parent
7e022b25a8
commit
28ac0abf6a
7 changed files with 87 additions and 39 deletions
|
@ -11,7 +11,7 @@ use rustc_serialize::json::{Json, ToJson};
|
|||
use std::sync::mpsc::Sender;
|
||||
|
||||
pub enum WebDriverScriptCommand {
|
||||
EvaluateJS(String, Sender<Result<EvaluateJSReply, ()>>),
|
||||
ExecuteScript(String, Sender<Result<EvaluateJSReply, ()>>),
|
||||
FindElementCSS(String, Sender<Result<Option<String>, ()>>),
|
||||
FindElementsCSS(String, Sender<Result<Vec<String>, ()>>),
|
||||
GetActiveElement(Sender<Option<String>>),
|
||||
|
@ -40,3 +40,5 @@ impl ToJson for EvaluateJSReply {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct LoadComplete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue