Add some more WebDriver capabilities from the spec.

This commit is contained in:
James Graham 2015-06-15 14:36:01 +01:00
parent f28219b8cb
commit 512ba50315

View file

@ -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(),