capybara-headless_chrome 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cc9d89c93d37d2fc503e918c6f694aee844b554
|
4
|
+
data.tar.gz: 2cd155dd480fb7e8bb7e36c8a03dc440abb994b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e66250cff62ceddd3adfd3afb7f0f5a13ea9cf99aec4bb690933f3a2fe09f1af558adebec967ebb0c77538b3d26c5cd1ca660e13d8bbc0c88d48f677da0bb9f0
|
7
|
+
data.tar.gz: a1bd9bc702df494dfa1edfb39fa8af4e078872e2c96516664f602220eafffa7b0495ff9be276e516c6302572e38ae80f04a97aeab0491982b5612562ee4c5ac0
|
@@ -6,8 +6,8 @@ require "capybara/headless_chrome/downloads"
|
|
6
6
|
module Capybara
|
7
7
|
module HeadlessChrome
|
8
8
|
class Driver < Capybara::Selenium::Driver
|
9
|
-
def initialize app
|
10
|
-
super(app, browser: :chrome, desired_capabilities: chrome_capabilities)
|
9
|
+
def initialize app, args: []
|
10
|
+
super(app, browser: :chrome, desired_capabilities: chrome_capabilities(args))
|
11
11
|
configure_downloads
|
12
12
|
fix_whitespace
|
13
13
|
end
|
@@ -18,10 +18,10 @@ module Capybara
|
|
18
18
|
|
19
19
|
private
|
20
20
|
|
21
|
-
def chrome_capabilities
|
21
|
+
def chrome_capabilities args
|
22
22
|
::Selenium::WebDriver::Remote::Capabilities.chrome(
|
23
23
|
chromeOptions: {
|
24
|
-
args: chrome_arguments,
|
24
|
+
args: chrome_arguments + args,
|
25
25
|
prefs: chrome_preferences
|
26
26
|
}
|
27
27
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-headless_chrome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chromedriver-helper
|