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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +2 -4
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/web_core/webdriver_helper.rb +14 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d97b7e502a92925e73d36a13871155d113fa873cc6edc8832adf0036435d65
|
4
|
+
data.tar.gz: 98ae195b6766c2872d548d07b9b79f7b028132815afd2e84f947e0f3d4b22fa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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)
|
@@ -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
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
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
|
-
|
257
|
-
|
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.
|
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
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|