mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
Add basic support for executeAsyncScript.
This relies on a global webdriverCallback function, which is visible to content. Obviously that's not a long term solution for a number of reasons, but it allows us to experiment for now
This commit is contained in:
parent
98cb65ca0a
commit
8d10fa1f2d
6 changed files with 96 additions and 35 deletions
|
@ -12,6 +12,7 @@ use std::sync::mpsc::Sender;
|
|||
|
||||
pub enum WebDriverScriptCommand {
|
||||
ExecuteScript(String, Sender<Result<EvaluateJSReply, ()>>),
|
||||
ExecuteAsyncScript(String, Sender<Result<EvaluateJSReply, ()>>),
|
||||
FindElementCSS(String, Sender<Result<Option<String>, ()>>),
|
||||
FindElementsCSS(String, Sender<Result<Vec<String>, ()>>),
|
||||
GetActiveElement(Sender<Option<String>>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue