eyes_appium 3.17.22 → 3.17.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/appium/android_region_provider.rb +8 -0
- data/lib/applitools/version.rb +1 -1
- data/lib/eyes_appium.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1414c3c2b1477b1bc44a0c661a5e188bc60e912
|
4
|
+
data.tar.gz: 3199c865b7b585f946bd64dc6ef44786f1c631a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '029c73f12326b00b30cb67a124b052902b95be780d233c8409f15945881079036e806ea406d0d473f69f14d410880f6ebc3a8a7b67712bc716deeb71658f9140'
|
7
|
+
data.tar.gz: 378314b52c10e438a75dafe60485f67571a74b46873a807195d1dea7d187e040a9d983e689639140c0b354a376e32860b3854286d9bbdaa2f5e76dc5688d7bc0
|
@@ -12,6 +12,14 @@ module Applitools
|
|
12
12
|
|
13
13
|
def convert_viewport_rect_coordinates
|
14
14
|
region = viewport_rect
|
15
|
+
|
16
|
+
session_info = Applitools::Utils::EyesSeleniumUtils.session_capabilities(driver)
|
17
|
+
if session_info['deviceScreenSize']
|
18
|
+
device_height = session_info['deviceScreenSize'].split('x').last.to_i
|
19
|
+
system_bars_height = driver.get_system_bars.map {|_,v| v['height'] }.sum
|
20
|
+
region['height'] = device_height - system_bars_height
|
21
|
+
end
|
22
|
+
|
15
23
|
Applitools::Region.new(
|
16
24
|
region['left'],
|
17
25
|
region['top'],
|
data/lib/applitools/version.rb
CHANGED
data/lib/eyes_appium.rb
CHANGED
@@ -34,7 +34,7 @@ if defined? Appium::Driver
|
|
34
34
|
Appium::Driver.class_eval do
|
35
35
|
def driver_for_eyes(eyes)
|
36
36
|
Appium.promote_appium_methods(Applitools::Appium::Driver::AppiumLib, self)
|
37
|
-
started_driver = self.http_client ? self : self.start_driver
|
37
|
+
started_driver = self.http_client ? self.driver : self.start_driver
|
38
38
|
Applitools::Appium::Driver.new(eyes, driver: started_driver, is_mobile_device: true)
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_appium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.17.
|
4
|
+
version: 3.17.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eyes_selenium
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.17.
|
19
|
+
version: 3.17.23
|
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.17.
|
26
|
+
version: 3.17.23
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: appium_lib
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|