cuculungwa 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cuculungwa.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d2118584420250a31431943df09cc31c9d7fae3
|
4
|
+
data.tar.gz: e9c2fc772fb1209cac703642d74f28c9c8724cdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 628ab0a6f1c6da8c14ca1b5e5518aed2509d1509ce97a147e0652c6bd559349f1c253ebdf939b49cac4ebef2c34fdc26641905ecf8c4fe6b5c972c6b3d63e600
|
7
|
+
data.tar.gz: 59243fff25a2757e176dfa0bb2e565e28c23734a20362f6796e277b8f25c2ce8f7f285cd8acea5aa4eea9aa474a61acd59ae57c54b8c88013858badcefaa0ba2
|
data/lib/cuculungwa.rb
CHANGED
@@ -38,8 +38,15 @@ elsif config['capybara']['browser']=='capybara-webkit'
|
|
38
38
|
end
|
39
39
|
Capybara.default_driver = :webkit
|
40
40
|
elsif config['capybara']['browser']=='seleniumRC'
|
41
|
+
client = Selenium::WebDriver::Remote::Http::Default.new
|
42
|
+
client.timeout = ENV['CLIENT_TIMEOUT'] ? ENV['CLIENT_TIMEOUT'].to_i : 60
|
43
|
+
capabilities = Selenium::WebDriver::Remote::Capabilities.new
|
44
|
+
capabilities[:introduce_flakiness_by_ignoring_security_domains] = true
|
45
|
+
capabilities[:javascript_enabled] = true
|
46
|
+
capabilities[:css_selectors_enabled] = true
|
47
|
+
capabilities[:ignore_protected_mode_settings] = true
|
41
48
|
Capybara.register_driver :selenium do |app|
|
42
|
-
Capybara::Selenium::Driver.new(app, :browser => :remote, :url => "http://10.2.0.143:4444/wd/hub", :desired_capabilities => :internet_explorer)
|
49
|
+
Capybara::Selenium::Driver.new(app, :browser => :remote, :url => "http://10.2.0.143:4444/wd/hub", :desired_capabilities => :internet_explorer, :http_client => client, :desired_capabilities => :capabilities)
|
43
50
|
end
|
44
51
|
Capybara.default_driver = :selenium
|
45
52
|
else
|