eyes_selenium 3.16.13 → 3.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/selenium/browser_types.rb +25 -3
- data/lib/applitools/selenium/configuration.rb +0 -7
- data/lib/applitools/selenium/eyes_target_locator.rb +1 -1
- data/lib/applitools/selenium/selenium_eyes.rb +5 -2
- data/lib/applitools/selenium/target.rb +1 -1
- data/lib/applitools/selenium/visual_grid/render_browser_info.rb +1 -1
- data/lib/applitools/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a68618962f93a2f434448a9e22666248db5007280c5fc3393694456561a4852d
|
4
|
+
data.tar.gz: 0ccafcaf697695aa88b96797724d5bf55e0a39ae85a9b89add2b91ca45f442d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45eb18dbb440f090a57ee7c1de358205e8d18998c368335240ff5f677072e2f6045e4643e596a3b99b811aff88cd6b4572c55f7125dc0c0453b92193104fec0b
|
7
|
+
data.tar.gz: dc91239a1144ef2f0eb751a58f1977f41e23e7c5e6aa389af760fded8f0bb9f822bc1bdb7ea64c4cac93b93831f70b677b6526f6f3be7fffd5af9010cb964951
|
@@ -13,10 +13,30 @@ module BrowserTypes
|
|
13
13
|
SAFARI_ONE_VERSION_BACK = :'safari-1'
|
14
14
|
SAFARI_TWO_VERSIONS_BACK = :'safari-2'
|
15
15
|
|
16
|
+
EDGE_CHROMIUM = :'edgechromium'
|
17
|
+
EDGE_CHROMIUM_ONE_VERSION_BACK = :'edgechromium-1'
|
18
|
+
|
16
19
|
IE_11 = :ie
|
17
|
-
|
20
|
+
EDGE_LEGACY = :edgelegacy
|
18
21
|
IE_10 = :ie10
|
19
22
|
|
23
|
+
def const_defined?(name)
|
24
|
+
return true if name == :EDGE
|
25
|
+
super
|
26
|
+
end
|
27
|
+
|
28
|
+
def const_missing(name)
|
29
|
+
if name == :EDGE
|
30
|
+
Applitools::EyesLogger.warn(
|
31
|
+
'The \'EDGE\' option that is being used in your browsers\' configuration will soon be deprecated. ' \
|
32
|
+
'Please change it to either \'EDGE_LEGACY\' for the legacy version ' \
|
33
|
+
'or to \'EDGE_CHROMIUM\' for the new Chromium-based version.'
|
34
|
+
)
|
35
|
+
return EDGE_LEGACY
|
36
|
+
end
|
37
|
+
super
|
38
|
+
end
|
39
|
+
|
20
40
|
def enum_values
|
21
41
|
[
|
22
42
|
CHROME,
|
@@ -29,8 +49,10 @@ module BrowserTypes
|
|
29
49
|
SAFARI_ONE_VERSION_BACK,
|
30
50
|
SAFARI_TWO_VERSIONS_BACK,
|
31
51
|
IE_11,
|
32
|
-
|
33
|
-
IE_10
|
52
|
+
EDGE_LEGACY,
|
53
|
+
IE_10,
|
54
|
+
EDGE_CHROMIUM,
|
55
|
+
EDGE_CHROMIUM_ONE_VERSION_BACK
|
34
56
|
]
|
35
57
|
end
|
36
58
|
end
|
@@ -14,7 +14,6 @@ module Applitools
|
|
14
14
|
hide_scrollbars: true,
|
15
15
|
hide_caret: false,
|
16
16
|
browsers_info: Applitools::Selenium::BrowsersInfo.new,
|
17
|
-
accessibility_validation: Applitools::AccessibilityLevel::NONE,
|
18
17
|
rendering_grid_force_put: (ENV['APPLITOOLS_RENDERING_GRID_FORCE_PUT'] || 'false').casecmp('true') == 0
|
19
18
|
}
|
20
19
|
end
|
@@ -33,14 +32,8 @@ module Applitools
|
|
33
32
|
|
34
33
|
object_field :browsers_info, Applitools::Selenium::BrowsersInfo
|
35
34
|
int_field :concurrent_sessions
|
36
|
-
enum_field :accessibility_validation, Applitools::AccessibilityLevel.enum_values
|
37
35
|
boolean_field :rendering_grid_force_put
|
38
36
|
|
39
|
-
def custom_setter_for_accessibility_validation(value)
|
40
|
-
# self.default_match_settings = self.parent.class.default_config[:default_match_settings] unless default_match_settings
|
41
|
-
default_match_settings.accessibility_level = value
|
42
|
-
end
|
43
|
-
|
44
37
|
def add_browser(*args)
|
45
38
|
case args.size
|
46
39
|
when 0, 1
|
@@ -210,7 +210,7 @@ module Applitools::Selenium
|
|
210
210
|
when String
|
211
211
|
frame(name_or_id: frame_name_or_id)
|
212
212
|
when Applitools::Selenium::Element
|
213
|
-
frame(frame_element: frame_name_or_id
|
213
|
+
frame(frame_element: frame_name_or_id)
|
214
214
|
else
|
215
215
|
Applitools::ArgumentGuard.raise_argument_error Applitools::EyesNoSuchFrame.new frame_name_or_id
|
216
216
|
end
|
@@ -674,10 +674,13 @@ module Applitools::Selenium
|
|
674
674
|
|
675
675
|
if platform_name && !platform_name.empty?
|
676
676
|
os = platform_name
|
677
|
-
platform_version = Applitools::Utils::EyesSeleniumUtils.platform_version(underlying_driver)
|
678
|
-
|
677
|
+
platform_version = Applitools::Utils::EyesSeleniumUtils.platform_version(underlying_driver)
|
678
|
+
case platform_version
|
679
|
+
when String
|
679
680
|
major_version = platform_version.split(/\./).first
|
680
681
|
os << " #{major_version}"
|
682
|
+
when Array
|
683
|
+
os << " #{platform_version.first}"
|
681
684
|
end
|
682
685
|
logger.info "Setting OS: #{os}"
|
683
686
|
app_env.os = os
|
@@ -312,7 +312,7 @@ module Applitools
|
|
312
312
|
options = Applitools::Utils.extract_options! args
|
313
313
|
unless options[:type]
|
314
314
|
raise Applitools::EyesError,
|
315
|
-
'You should call Target.accessibility(region,
|
315
|
+
'You should call Target.accessibility(region, type: type). The :type option is required'
|
316
316
|
end
|
317
317
|
unless Applitools::AccessibilityRegionType.enum_values.include?(options[:type])
|
318
318
|
raise Applitools::EyesIllegalArgument,
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.17.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.17.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
rubygems_version: 3.0.
|
191
|
+
rubygems_version: 3.0.8
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Applitools Ruby Selenium SDK
|