mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Add some more WebDriver capabilities from the spec.
This commit is contained in:
parent
f28219b8cb
commit
512ba50315
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ impl Handler {
|
|||
let mut capabilities = BTreeMap::new();
|
||||
capabilities.insert("browserName".to_owned(), "servo".to_json());
|
||||
capabilities.insert("browserVersion".to_owned(), "0.0.1".to_json());
|
||||
capabilities.insert("acceptSslCerts".to_owned(), false.to_json());
|
||||
capabilities.insert("takeScreenshot".to_owned(), true.to_json());
|
||||
capabilities.insert("takeElementScreenshot".to_owned(), false.to_json());
|
||||
let rv = Ok(WebDriverResponse::NewSession(
|
||||
NewSessionResponse::new(
|
||||
session.id.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue