testcentricity_web 3.2.25 → 3.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
  SHA256:
3
- metadata.gz: 49868a5ac9a36308a250e4682750a7450c94f0bd297d8103d25170fbd067491e
4
- data.tar.gz: bd80b70984d2646cf6d510be7517d9a2e5d353df69c30f367c89bfba7d29e011
3
+ metadata.gz: a3d97b7e502a92925e73d36a13871155d113fa873cc6edc8832adf0036435d65
4
+ data.tar.gz: 98ae195b6766c2872d548d07b9b79f7b028132815afd2e84f947e0f3d4b22fa2
5
5
  SHA512:
6
- metadata.gz: bb6029661e87b7528125a06dce284b149f09f538c31c24a2835c55f36b7f38a2699c7cd8c9b4768205496b409a2d7b7210ce5e99bdb5a7173c2677343af3def7
7
- data.tar.gz: 384e430102526d15a43c35e2bcab9ff11df24497cb342767aacd4527694e06c1053d20ceb69d298841499932aefbca3945d528dfb10871a6b7e70e3268cf415b
6
+ metadata.gz: c01dcd0570c1af0b58f86c15dacc86cdd99caccc5f0f5bd750f9dbc1875447860cb30204939071468078426a3823ffc12a6ef9936d858509e2e471492be07b8a
7
+ data.tar.gz: ed1919d60dfef160d4e59a2b40a3405dfd08b0632930f69ea2a0e068fcc51210d01fd003a549ec377929feae3de03463ac4754b47df3fcda317cc02018f70569
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
 
5
+ ## [3.3.0] - 14-MAR-2021
6
+
7
+ ### Fixed
8
+ * `WebDriverConnect.initialize_web_driver` method now correctly sets local Chrome browser Download directory when running
9
+ with headless Chrome.
10
+
5
11
  ## [3.2.25] - 11-MAR-2021
6
12
 
7
13
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity_web (3.2.25)
4
+ testcentricity_web (3.3.0)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 3.1, < 4)
@@ -61,9 +61,7 @@ GEM
61
61
  concurrent-ruby (~> 1.0)
62
62
  ice_nine (0.11.2)
63
63
  mini_mime (1.0.2)
64
- mini_portile2 (2.5.0)
65
- nokogiri (1.11.2)
66
- mini_portile2 (~> 2.5.0)
64
+ nokogiri (1.11.2-x86_64-darwin)
67
65
  racc (~> 1.4)
68
66
  os (1.1.1)
69
67
  power_assert (2.0.0)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.2.25'
2
+ VERSION = '3.3.0'
3
3
  end
@@ -240,21 +240,22 @@ module TestCentricity
240
240
  options.args << '--headless' if browser == :firefox_headless
241
241
  Capybara::Selenium::Driver.new(app, browser: :firefox, options: options)
242
242
  when :chrome, :chrome_headless
243
- if browser == :chrome
244
- options = Selenium::WebDriver::Chrome::Options.new
245
- prefs = {
246
- prompt_for_download: false,
247
- directory_upgrade: true,
248
- default_directory: @downloads_path
249
- }
250
- options.add_preference(:download, prefs)
251
- else
252
- options = Selenium::WebDriver::Chrome::Options.new(args: %w[headless disable-gpu no-sandbox])
253
- end
243
+ options = Selenium::WebDriver::Chrome::Options.new
244
+ prefs = {
245
+ prompt_for_download: false,
246
+ directory_upgrade: true,
247
+ default_directory: @downloads_path
248
+ }
249
+ options.add_preference(:download, prefs)
254
250
  options.add_argument('--disable-infobars')
255
251
  options.add_argument("--lang=#{ENV['LOCALE']}") if ENV['LOCALE']
256
- Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
257
- else
252
+ if browser == :chrome_headless
253
+ options.add_argument('--headless')
254
+ options.add_argument('--disable-gpu')
255
+ options.add_argument('--no-sandbox')
256
+ end
257
+
258
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: options) else
258
259
  if ENV['HOST_BROWSER'] && ENV['HOST_BROWSER'].downcase.to_sym == :chrome
259
260
  user_agent = Browsers.mobile_device_agent(ENV['WEB_BROWSER'])
260
261
  options = Selenium::WebDriver::Chrome::Options.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.25
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler