Skip to content

Commit

Permalink
Don't make non-goog browsers choke on chrome cap
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Oct 2, 2018
1 parent b030fc3 commit 65081eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fantoccini"
version = "0.11.2"
version = "0.11.3"

description = "High-level API for programmatically interacting with web pages through WebDriver."
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl Session {
// make chrome comply with w3c
let mut copts = serde_json::Map::new();
copts.insert("w3c".to_string(), Json::from(true));
cap.insert("chromeOptions".to_string(), Json::Object(copts));
cap.insert("goog:chromeOptions".to_string(), Json::Object(copts));

let session_config = webdriver::capabilities::SpecNewSessionParameters {
alwaysMatch: cap.clone(),
Expand Down

0 comments on commit 65081eb

Please sign in to comment.