congress_forms 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/congress_forms/version.rb +1 -1
- data/lib/congress_forms.rb +8 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 805b230f97a3b9f4a4d3a5e7108d623e649adbbb548361bad2a2799b15177b64
|
4
|
+
data.tar.gz: 7aaeef3fbec56c34838eaa231c081bf2d6c8a0b5ade47d2cb013d010a64d1f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3551f400d01950ee36ff963b514b38921fcb3e1f76848202890be30d639a3f7994c782f8d9ce259e0e1fbf53e0a4203717d81de41dc99908144175d97038a77d
|
7
|
+
data.tar.gz: bcce5315c8c5440907d416d44f8e65e344fadf8522406bd937326578d56d94a3bf52ff02216792efea1217537c875c62b230ead197ed133565acd7ebd0846b8a
|
data/lib/congress_forms.rb
CHANGED
@@ -44,20 +44,15 @@ Capybara.register_driver :remote do
|
|
44
44
|
)
|
45
45
|
end
|
46
46
|
|
47
|
-
Capybara.register_driver :headless_chrome do
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
)
|
47
|
+
Capybara.register_driver :headless_chrome do |app|
|
48
|
+
Capybara::Selenium::Driver.load_selenium
|
49
|
+
browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
|
50
|
+
opts.args.merge(%w(--new-window --no-sandbox --disable-dev-shm-usage --window-size=1200,1400))
|
51
|
+
opts.args << '--headless' unless ENV["HEADLESS"] == "0"
|
52
|
+
opts.args << '--disable-gpu' if Gem.win_platform?
|
53
|
+
end
|
55
54
|
|
56
|
-
Capybara::Selenium::Driver.new(
|
57
|
-
nil,
|
58
|
-
browser: :chrome,
|
59
|
-
desired_capabilities: capabilities
|
60
|
-
)
|
55
|
+
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
|
61
56
|
end
|
62
57
|
|
63
58
|
module CongressForms
|