eyes_selenium 3.14.5 → 3.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applitools/selenium/driver.rb +16 -16
- data/lib/applitools/selenium/eyes.rb +1 -1
- data/lib/applitools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ba0a853d9c472708fee35f4017ccce943678cadd10fe88e8b1e34d34bcff3e
|
4
|
+
data.tar.gz: 19ae381f33f0c571fa071de36303c938fd1d5f5be001d3dbfb25a2776babf013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab54d240d874bd9a6d9e099d8cf8414339feb255f06a33e757cf54aa5c4ed273767710006c8a7bb5781adbac6c9f2b77027de373a5b74b8b074fcdfefe175b7
|
7
|
+
data.tar.gz: cf8396eb08764df8b8e9e87922076dfe3849fc110a758e53e4087918e5544c33d02eb128ac5419974bda445c0e89b054e7a8d033d19ca831b8bfc62c3f39b0be
|
@@ -62,17 +62,17 @@ module Applitools::Selenium
|
|
62
62
|
# Returns the platform name.
|
63
63
|
#
|
64
64
|
# @return [String] The platform name or +nil+ if it is undefined.
|
65
|
-
def platform_name
|
66
|
-
|
67
|
-
end
|
65
|
+
# def platform_name
|
66
|
+
# capabilities['platformName']
|
67
|
+
# end
|
68
68
|
|
69
69
|
# Returns the platform version.
|
70
70
|
#
|
71
71
|
# @return [String] The platform version or +nil+ if it is undefined.
|
72
|
-
def platform_version
|
73
|
-
|
74
|
-
|
75
|
-
end
|
72
|
+
# def platform_version
|
73
|
+
# version = capabilities['platformVersion']
|
74
|
+
# version.nil? ? nil : version.to_s
|
75
|
+
# end
|
76
76
|
|
77
77
|
# Returns +true+ if the driver orientation is landscape.
|
78
78
|
def landscape_orientation?
|
@@ -175,15 +175,15 @@ module Applitools::Selenium
|
|
175
175
|
driver.find_elements(how, what).map { |el| Applitools::Selenium::Element.new(self, el) }
|
176
176
|
end
|
177
177
|
|
178
|
-
# Returns +true+ if test is running on Android platform
|
179
|
-
def android?
|
180
|
-
|
181
|
-
end
|
182
|
-
|
183
|
-
# Returns +true+ if test is running on iOS platform
|
184
|
-
def ios?
|
185
|
-
|
186
|
-
end
|
178
|
+
# # Returns +true+ if test is running on Android platform
|
179
|
+
# def android?
|
180
|
+
# platform_name.to_s.upcase == ANDROID
|
181
|
+
# end
|
182
|
+
#
|
183
|
+
# # Returns +true+ if test is running on iOS platform
|
184
|
+
# def ios?
|
185
|
+
# platform_name.to_s.upcase == IOS
|
186
|
+
# end
|
187
187
|
|
188
188
|
# Returns a copy of current frame chain. Frame chain stores information about all parent frames,
|
189
189
|
# including scroll offset an frame coordinates.
|
@@ -762,7 +762,7 @@ module Applitools::Selenium
|
|
762
762
|
app_env = super
|
763
763
|
if app_env.os.nil?
|
764
764
|
logger.info 'No OS set, checking for mobile OS...'
|
765
|
-
underlying_driver = Applitools::Utils::EyesSeleniumUtils.mobile_device?
|
765
|
+
underlying_driver = Applitools::Utils::EyesSeleniumUtils.mobile_device?(driver)
|
766
766
|
unless underlying_driver.nil?
|
767
767
|
logger.info 'Mobile device detected! Checking device type...'
|
768
768
|
if Applitools::Utils::EyesSeleniumUtils.android?(underlying_driver)
|
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.14.
|
4
|
+
version: 3.14.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-28 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.14.
|
19
|
+
version: 3.14.6
|
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.14.
|
26
|
+
version: 3.14.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: selenium-webdriver
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|