webdriver_server: remove non-conforming screenshot capabilities

The WebDriver standard no longer specifies that the takeScreenshot and
takeElementScreenshot capabilities since it is assumed that all driver
implementations must support these features.
This commit is contained in:
Andreas Tolfsen 2017-01-26 16:56:45 +00:00
parent 88cd8a3cf0
commit 8653ef77c2

View file

@ -304,8 +304,6 @@ impl Handler {
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(),