Add enough Webdriver support to enable Get().

This is incomplete in several ways:

* It assumes that there's only one constellation (i.e. top level browsing context), ever.
* The session support is very basic indeed (no capabilities)
* Passing channels over channels may not sit well with IPC
* The error handling is mostly missing
This commit is contained in:
James Graham 2015-04-03 23:23:52 +01:00
parent 7fddf4aa13
commit 009e2baaf0
10 changed files with 164 additions and 18 deletions

8
ports/cef/Cargo.lock generated
View file

@ -111,6 +111,7 @@ dependencies = [
"time 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"webdriver_server 0.0.1",
]
[[package]]
@ -1007,7 +1008,7 @@ dependencies = [
[[package]]
name = "webdriver"
version = "0.0.1"
source = "git+https://github.com/jgraham/webdriver-rust.git#906806d51783b5caad89432bf8ce008f2f4968fc"
source = "git+https://github.com/jgraham/webdriver-rust.git#4f543416a269b9d0d7ee5332db489768c2a769dd"
dependencies = [
"hyper 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1020,6 +1021,11 @@ dependencies = [
name = "webdriver_server"
version = "0.0.1"
dependencies = [
"msg 0.0.1",
"rustc-serialize 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"uuid 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
"webdriver 0.0.1 (git+https://github.com/jgraham/webdriver-rust.git)",
]

8
ports/gonk/Cargo.lock generated
View file

@ -91,6 +91,7 @@ dependencies = [
"time 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"webdriver_server 0.0.1",
]
[[package]]
@ -923,7 +924,7 @@ dependencies = [
[[package]]
name = "webdriver"
version = "0.0.1"
source = "git+https://github.com/jgraham/webdriver-rust.git#906806d51783b5caad89432bf8ce008f2f4968fc"
source = "git+https://github.com/jgraham/webdriver-rust.git#4f543416a269b9d0d7ee5332db489768c2a769dd"
dependencies = [
"hyper 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
@ -936,6 +937,11 @@ dependencies = [
name = "webdriver_server"
version = "0.0.1"
dependencies = [
"msg 0.0.1",
"rustc-serialize 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
"util 0.0.1",
"uuid 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
"webdriver 0.0.1 (git+https://github.com/jgraham/webdriver-rust.git)",
]