cuculungwa 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cuculungwa.rb +8 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 948073b31c195d8650062f70f834d15f41c9df51
4
- data.tar.gz: b8d1c1a9dbdd9052c0c8a800b64a53752d1877f7
3
+ metadata.gz: 5d2118584420250a31431943df09cc31c9d7fae3
4
+ data.tar.gz: e9c2fc772fb1209cac703642d74f28c9c8724cdd
5
5
  SHA512:
6
- metadata.gz: 2dbc338ab597cc1d10dd6e854ae31300d7a19e12fb1924bde915add322ffc7846aebf80ce5133a84704bc7c82542920cb446fc2cfdc6df9751b7f210aa8e84a1
7
- data.tar.gz: a4ba93dee3096ec526de2f5666f6fadfe80c9909be1da06850e64fb142fe6b384b900674757015197ecf7a50caa6c9967ee1308d3133eb6b545419c0490ac491
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuculungwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kaftanski