eyes_selenium 6.0.0 → 6.0.2
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/CHANGELOG.md +27 -0
- data/lib/applitools/eyes_selenium/version.rb +1 -1
- data/lib/applitools/selenium/configuration.rb +2 -2
- data/lib/applitools/selenium/device_name_generated.rb +163 -0
- data/lib/applitools/selenium/devices.rb +104 -147
- data/lib/applitools/selenium/visual_grid/android_device_name.rb +43 -39
- data/lib/applitools/selenium/visual_grid/android_device_name_generated.rb +77 -0
- data/lib/applitools/selenium/visual_grid/ios_device_name.rb +3 -51
- data/lib/applitools/selenium/visual_grid/ios_device_name_generated.rb +146 -0
- data/lib/eyes_selenium.rb +1 -0
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df4eb2ad8314964ce5a5c310218d30df45f675259b799c08031439aa64d1fbc9
|
|
4
|
+
data.tar.gz: df11ea625c7329a870bb6b939241be08da977b42dc7e65149e48a46230907956
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fc95bcf5eca8370f91cfd834341fa2c66889b19b9b4bcddadc39cad25c6c2a47ebbfa35f5277185f92fd71746b4a6505f9660ce9593952f6eb6beb09e03b525
|
|
7
|
+
data.tar.gz: dad93af59ea644d7221c954c6df1cfb5e550d2091677ab2bb1af159ed98f669905d1222446611961987f43a79df99692e356765a5dddfc8e376a0638f20c3e7d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.0.2] (2024-01-03)
|
|
4
|
+
|
|
5
|
+
### Updated
|
|
6
|
+
* Update version of Universal SDK Core to 4.5.2
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* ### Features
|
|
11
|
+
* sign windows binaries
|
|
12
|
+
* support updated applitools lib protocol
|
|
13
|
+
* add set of env variables to skip/ignore some optional automations
|
|
14
|
+
|
|
15
|
+
* ### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* layout breakpoints reload and lazy load
|
|
18
|
+
* fix safe selector generation
|
|
19
|
+
* fixed issue when page wasn't reloaded for one of the breakpoints if the initial viewport size matches it
|
|
20
|
+
* avoid caching concurrency
|
|
21
|
+
* environment for each check for local environment
|
|
22
|
+
* fixed concurrency splank logging
|
|
23
|
+
* fixed the issue when custom os name passed through configuration wasn't respected
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [6.0.1] (2023-12-13)
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
* fix code loading error (NameError in environment_sdk)
|
|
29
|
+
|
|
3
30
|
## [6.0.0] (2023-12-13)
|
|
4
31
|
|
|
5
32
|
### Dependencies
|
|
@@ -97,8 +97,8 @@ module Applitools
|
|
|
97
97
|
user_defined_vp = super
|
|
98
98
|
user_defined_vp = nil if user_defined_vp.respond_to?(:square) && user_defined_vp.square == 0
|
|
99
99
|
return user_defined_vp if user_defined_vp
|
|
100
|
-
from_browsers_info = browsers_info.select { |bi| bi.viewport_size.square > 0 }.first
|
|
101
|
-
return from_browsers_info.viewport_size if from_browsers_info
|
|
100
|
+
# from_browsers_info = browsers_info.select { |bi| bi.viewport_size.square > 0 }.first
|
|
101
|
+
# return from_browsers_info.viewport_size if from_browsers_info
|
|
102
102
|
nil
|
|
103
103
|
end
|
|
104
104
|
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# GENERATED FILE #
|
|
2
|
+
|
|
3
|
+
module DeviceNameGenerated
|
|
4
|
+
extend self
|
|
5
|
+
IPhone_4 = 'iPhone 4'.freeze
|
|
6
|
+
IPhone_5SE = 'iPhone 5/SE'.freeze
|
|
7
|
+
|
|
8
|
+
# Deprecated: Use DeviceName::IPhone_5SE instead.
|
|
9
|
+
# deprecate_constant :IPhone_5S_E not allow to point to new version (
|
|
10
|
+
IPhone_5S_E = 'iPhone 5/SE'.freeze
|
|
11
|
+
IPhone_6_7_8 = 'iPhone 6/7/8'.freeze
|
|
12
|
+
IPhone_6_7_8_Plus = 'iPhone 6/7/8 Plus'.freeze
|
|
13
|
+
IPhone_X = 'iPhone X'.freeze
|
|
14
|
+
BlackBerry_Z30 = 'BlackBerry Z30'.freeze
|
|
15
|
+
Nexus_4 = 'Nexus 4'.freeze
|
|
16
|
+
Nexus_5 = 'Nexus 5'.freeze
|
|
17
|
+
Nexus_5X = 'Nexus 5X'.freeze
|
|
18
|
+
Nexus_6 = 'Nexus 6'.freeze
|
|
19
|
+
Nexus_6P = 'Nexus 6P'.freeze
|
|
20
|
+
Pixel_2 = 'Pixel 2'.freeze
|
|
21
|
+
Pixel_2_XL = 'Pixel 2 XL'.freeze
|
|
22
|
+
LG_Optimus_L70 = 'LG Optimus L70'.freeze
|
|
23
|
+
Nokia_N9 = 'Nokia N9'.freeze
|
|
24
|
+
Nokia_Lumia_520 = 'Nokia Lumia 520'.freeze
|
|
25
|
+
Microsoft_Lumia_550 = 'Microsoft Lumia 550'.freeze
|
|
26
|
+
Microsoft_Lumia_950 = 'Microsoft Lumia 950'.freeze
|
|
27
|
+
Galaxy_S3 = 'Galaxy S3'.freeze
|
|
28
|
+
Galaxy_S_III = 'Galaxy S III'.freeze
|
|
29
|
+
Galaxy_S5 = 'Galaxy S5'.freeze
|
|
30
|
+
Kindle_Fire_HDX = 'Kindle Fire HDX'.freeze
|
|
31
|
+
IPad_Mini = 'iPad Mini'.freeze
|
|
32
|
+
IPad = 'iPad'.freeze
|
|
33
|
+
IPad_Pro = 'iPad Pro'.freeze
|
|
34
|
+
Blackberry_PlayBook = 'Blackberry PlayBook'.freeze
|
|
35
|
+
Nexus_10 = 'Nexus 10'.freeze
|
|
36
|
+
Nexus_7 = 'Nexus 7'.freeze
|
|
37
|
+
Galaxy_Note_3 = 'Galaxy Note 3'.freeze
|
|
38
|
+
Galaxy_Note_II = 'Galaxy Note II'.freeze
|
|
39
|
+
Galaxy_Note_2 = 'Galaxy Note 2'.freeze
|
|
40
|
+
Galaxy_S20 = 'Galaxy S20'.freeze
|
|
41
|
+
Galaxy_S22 = 'Galaxy S22'.freeze
|
|
42
|
+
Galaxy_S21 = 'Galaxy S21'.freeze
|
|
43
|
+
Galaxy_S21_Ultra = 'Galaxy S21 Ultra'.freeze
|
|
44
|
+
Galaxy_S22_Ultra = 'Galaxy S22 Ultra'.freeze
|
|
45
|
+
Laptop_with_touch = 'Laptop with touch'.freeze
|
|
46
|
+
Laptop_with_HiDPI_screen = 'Laptop with HiDPI screen'.freeze
|
|
47
|
+
Laptop_with_MDPI_screen = 'Laptop with MDPI screen'.freeze
|
|
48
|
+
IPhone_XR = 'iPhone XR'.freeze
|
|
49
|
+
IPhone_XS_Max = 'iPhone XS Max'.freeze
|
|
50
|
+
IPhone_XS = 'iPhone XS'.freeze
|
|
51
|
+
Samsung_Galaxy_A5 = 'Samsung Galaxy A5'.freeze
|
|
52
|
+
Galaxy_A5 = 'Galaxy A5'.freeze
|
|
53
|
+
Samsung_Galaxy_S8 = 'Samsung Galaxy S8'.freeze
|
|
54
|
+
Galaxy_S8 = 'Galaxy S8'.freeze
|
|
55
|
+
LG_G6 = 'LG G6'.freeze
|
|
56
|
+
IPad_Air_2 = 'iPad Air 2'.freeze
|
|
57
|
+
IPad_6th_Gen = 'iPad 6th Gen'.freeze
|
|
58
|
+
IPhone_11 = 'iPhone 11'.freeze
|
|
59
|
+
IPhone_11_Pro_Max = 'iPhone 11 Pro Max'.freeze
|
|
60
|
+
IPhone_11_Pro = 'iPhone 11 Pro'.freeze
|
|
61
|
+
Galaxy_S10 = 'Galaxy S10'.freeze
|
|
62
|
+
Galaxy_S9_Plus = 'Galaxy S9 Plus'.freeze
|
|
63
|
+
Galaxy_S9 = 'Galaxy S9'.freeze
|
|
64
|
+
Galaxy_S10_Plus = 'Galaxy S10 Plus'.freeze
|
|
65
|
+
Galaxy_S8_Plus = 'Galaxy S8 Plus'.freeze
|
|
66
|
+
Galaxy_Note_10 = 'Galaxy Note 10'.freeze
|
|
67
|
+
Galaxy_Note_10_Plus = 'Galaxy Note 10 Plus'.freeze
|
|
68
|
+
Galaxy_Note_9 = 'Galaxy Note 9'.freeze
|
|
69
|
+
Galaxy_Note_8 = 'Galaxy Note 8'.freeze
|
|
70
|
+
Galaxy_Note_4 = 'Galaxy Note 4'.freeze
|
|
71
|
+
Pixel_3 = 'Pixel 3'.freeze
|
|
72
|
+
Pixel_3_XL = 'Pixel 3 XL'.freeze
|
|
73
|
+
Pixel_4 = 'Pixel 4'.freeze
|
|
74
|
+
Pixel_4_XL = 'Pixel 4 XL'.freeze
|
|
75
|
+
Pixel_5 = 'Pixel 5'.freeze
|
|
76
|
+
IPad_7th_Gen = 'iPad 7th Gen'.freeze
|
|
77
|
+
OnePlus_7T = 'OnePlus 7T'.freeze
|
|
78
|
+
OnePlus_7T_Pro = 'OnePlus 7T Pro'.freeze
|
|
79
|
+
Galaxy_Tab_S7 = 'Galaxy Tab S7'.freeze
|
|
80
|
+
Sony_Xperia_10_II = 'Sony Xperia 10 II'.freeze
|
|
81
|
+
Huawei_Mate_50_Pro = 'Huawei Mate 50 Pro'.freeze
|
|
82
|
+
Huawei_Matepad_11 = 'Huawei Matepad 11'.freeze
|
|
83
|
+
|
|
84
|
+
def enum_values
|
|
85
|
+
[
|
|
86
|
+
IPhone_4,
|
|
87
|
+
IPhone_5SE,
|
|
88
|
+
IPhone_5S_E, # Deprecated: Use DeviceName::IPhone_5SE instead.
|
|
89
|
+
IPhone_6_7_8,
|
|
90
|
+
IPhone_6_7_8_Plus,
|
|
91
|
+
IPhone_X,
|
|
92
|
+
BlackBerry_Z30,
|
|
93
|
+
Nexus_4,
|
|
94
|
+
Nexus_5,
|
|
95
|
+
Nexus_5X,
|
|
96
|
+
Nexus_6,
|
|
97
|
+
Nexus_6P,
|
|
98
|
+
Pixel_2,
|
|
99
|
+
Pixel_2_XL,
|
|
100
|
+
LG_Optimus_L70,
|
|
101
|
+
Nokia_N9,
|
|
102
|
+
Nokia_Lumia_520,
|
|
103
|
+
Microsoft_Lumia_550,
|
|
104
|
+
Microsoft_Lumia_950,
|
|
105
|
+
Galaxy_S3,
|
|
106
|
+
Galaxy_S_III,
|
|
107
|
+
Galaxy_S5,
|
|
108
|
+
Kindle_Fire_HDX,
|
|
109
|
+
IPad_Mini,
|
|
110
|
+
IPad,
|
|
111
|
+
IPad_Pro,
|
|
112
|
+
Blackberry_PlayBook,
|
|
113
|
+
Nexus_10,
|
|
114
|
+
Nexus_7,
|
|
115
|
+
Galaxy_Note_3,
|
|
116
|
+
Galaxy_Note_II,
|
|
117
|
+
Galaxy_Note_2,
|
|
118
|
+
Galaxy_S20,
|
|
119
|
+
Galaxy_S22,
|
|
120
|
+
Galaxy_S21,
|
|
121
|
+
Galaxy_S21_Ultra,
|
|
122
|
+
Galaxy_S22_Ultra,
|
|
123
|
+
Laptop_with_touch,
|
|
124
|
+
Laptop_with_HiDPI_screen,
|
|
125
|
+
Laptop_with_MDPI_screen,
|
|
126
|
+
IPhone_XR,
|
|
127
|
+
IPhone_XS_Max,
|
|
128
|
+
IPhone_XS,
|
|
129
|
+
Samsung_Galaxy_A5,
|
|
130
|
+
Galaxy_A5,
|
|
131
|
+
Samsung_Galaxy_S8,
|
|
132
|
+
Galaxy_S8,
|
|
133
|
+
LG_G6,
|
|
134
|
+
IPad_Air_2,
|
|
135
|
+
IPad_6th_Gen,
|
|
136
|
+
IPhone_11,
|
|
137
|
+
IPhone_11_Pro_Max,
|
|
138
|
+
IPhone_11_Pro,
|
|
139
|
+
Galaxy_S10,
|
|
140
|
+
Galaxy_S9_Plus,
|
|
141
|
+
Galaxy_S9,
|
|
142
|
+
Galaxy_S10_Plus,
|
|
143
|
+
Galaxy_S8_Plus,
|
|
144
|
+
Galaxy_Note_10,
|
|
145
|
+
Galaxy_Note_10_Plus,
|
|
146
|
+
Galaxy_Note_9,
|
|
147
|
+
Galaxy_Note_8,
|
|
148
|
+
Galaxy_Note_4,
|
|
149
|
+
Pixel_3,
|
|
150
|
+
Pixel_3_XL,
|
|
151
|
+
Pixel_4,
|
|
152
|
+
Pixel_4_XL,
|
|
153
|
+
Pixel_5,
|
|
154
|
+
IPad_7th_Gen,
|
|
155
|
+
OnePlus_7T,
|
|
156
|
+
OnePlus_7T_Pro,
|
|
157
|
+
Galaxy_Tab_S7,
|
|
158
|
+
Sony_Xperia_10_II,
|
|
159
|
+
Huawei_Mate_50_Pro,
|
|
160
|
+
Huawei_Matepad_11,
|
|
161
|
+
]
|
|
162
|
+
end
|
|
163
|
+
end
|
|
@@ -1,154 +1,111 @@
|
|
|
1
1
|
# frozen_string_literal: false
|
|
2
|
+
require_relative 'device_name_generated'
|
|
3
|
+
|
|
2
4
|
module Devices
|
|
5
|
+
include DeviceNameGenerated
|
|
3
6
|
extend self
|
|
4
|
-
BlackberryPlayBook = 'Blackberry PlayBook'.freeze
|
|
5
|
-
BlackBerryZ30 = 'BlackBerry Z30'.freeze
|
|
6
|
-
GalaxyA5 = 'Galaxy A5'.freeze
|
|
7
|
-
GalaxyNote10 = 'Galaxy Note 10'.freeze
|
|
8
|
-
GalaxyNote10Plus = 'Galaxy Note 10 Plus'.freeze
|
|
9
|
-
GalaxyNote2 = 'Galaxy Note 2'.freeze
|
|
10
|
-
GalaxyNote3 = 'Galaxy Note 3'.freeze
|
|
11
|
-
GalaxyNote4 = 'Galaxy Note 4'.freeze
|
|
12
|
-
# GalaxyNote8 = 'Galaxy Note 8'.freeze
|
|
13
|
-
GalaxyNote9 = 'Galaxy Note 9'.freeze
|
|
14
|
-
GalaxyS3 = 'Galaxy S3'.freeze
|
|
15
|
-
GalaxyS5 = 'Galaxy S5'.freeze
|
|
16
|
-
# GalaxyS8 = 'Galaxy S8'.freeze
|
|
17
|
-
# GalaxyS8Plus = 'Galaxy S8 Plus'.freeze
|
|
18
|
-
GalaxyS9 = 'Galaxy S9'.freeze
|
|
19
|
-
GalaxyS9Plus = 'Galaxy S9 Plus'.freeze
|
|
20
|
-
GalaxyS10 = 'Galaxy S10'.freeze
|
|
21
|
-
GalaxyS10Plus = 'Galaxy S10 Plus'.freeze
|
|
22
|
-
GalaxyS20 = 'Galaxy S20'.freeze
|
|
23
|
-
IPad = 'iPad'.freeze
|
|
24
|
-
IPad6thGen = 'iPad 6th Gen'.freeze
|
|
25
|
-
IPad7thGen = 'iPad 7th Gen'.freeze
|
|
26
|
-
IPadAir2 = 'iPad Air 2'.freeze
|
|
27
|
-
IPadMini = 'iPad Mini'.freeze
|
|
28
|
-
IPadPro = 'iPad Pro'.freeze
|
|
29
|
-
IPhone11 = 'iPhone 11'.freeze
|
|
30
|
-
IPhone11Pro = 'iPhone 11 Pro'.freeze
|
|
31
|
-
IPhone11ProMax = 'iPhone 11 Pro Max'.freeze
|
|
32
|
-
IPhone4 = 'iPhone 4'.freeze
|
|
33
|
-
IPhone5SE = 'iPhone 5/SE'.freeze
|
|
34
|
-
IPhone678 = 'iPhone 6/7/8'.freeze
|
|
35
|
-
IPhone678Plus = 'iPhone 6/7/8 Plus'.freeze
|
|
36
|
-
IPhoneX = 'iPhone X'.freeze
|
|
37
|
-
IPhoneXR = 'iPhone XR'.freeze
|
|
38
|
-
IPhoneXS = 'iPhone XS'.freeze
|
|
39
|
-
IPhoneXSMax = 'iPhone XS Max'.freeze
|
|
40
|
-
IPhone14 = 'iPhone 14'.freeze
|
|
41
|
-
IPhone14ProMax = 'iPhone 14 Pro Max'.freeze
|
|
42
|
-
KindleFireHDX = 'Kindle Fire HDX'.freeze
|
|
43
|
-
LaptopWithHIDPIScreen = 'Laptop with HiDPI screen'.freeze
|
|
44
|
-
LaptopWithMDPIScreen = 'Laptop with MDPI screen'.freeze
|
|
45
|
-
LaptopWithTouch = 'Laptop with touch'.freeze
|
|
46
|
-
LGG6 = 'LG G6'.freeze
|
|
47
|
-
LGOptimusL70 = 'LG Optimus L70'.freeze
|
|
48
|
-
MicrosoftLumia550 = 'Microsoft Lumia 550'.freeze
|
|
49
|
-
MicrosoftLumia950 = 'Microsoft Lumia 950'.freeze
|
|
50
|
-
Nexus10 = 'Nexus 10'.freeze
|
|
51
|
-
Nexus4 = 'Nexus 4'.freeze
|
|
52
|
-
Nexus5 = 'Nexus 5'.freeze
|
|
53
|
-
Nexus5X = 'Nexus 5X'.freeze
|
|
54
|
-
Nexus6 = 'Nexus 6'.freeze
|
|
55
|
-
Nexus6P = 'Nexus 6P'.freeze
|
|
56
|
-
Nexus7 = 'Nexus 7'.freeze
|
|
57
7
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
8
|
+
def pascal_device_name
|
|
9
|
+
{
|
|
10
|
+
BlackberryPlayBook: 'Devices::Blackberry_PlayBook'.freeze,
|
|
11
|
+
BlackBerryZ30: 'Devices::BlackBerry_Z30'.freeze,
|
|
12
|
+
GalaxyA5: 'Devices::Galaxy_A5'.freeze,
|
|
13
|
+
GalaxyNote10: 'Devices::Galaxy_Note_10'.freeze,
|
|
14
|
+
GalaxyNote10Plus: 'Devices::Galaxy_Note_10_Plus'.freeze,
|
|
15
|
+
GalaxyNote2: 'Devices::Galaxy_Note_2'.freeze,
|
|
16
|
+
GalaxyNote3: 'Devices::Galaxy_Note_3'.freeze,
|
|
17
|
+
GalaxyNote4: 'Devices::Galaxy_Note_4'.freeze,
|
|
18
|
+
|
|
19
|
+
GalaxyNote9: 'Devices::Galaxy_Note_9'.freeze,
|
|
20
|
+
GalaxyS3: 'Devices::Galaxy_S3'.freeze,
|
|
21
|
+
GalaxyS5: 'Devices::Galaxy_S5'.freeze,
|
|
22
|
+
|
|
23
|
+
GalaxyS9: 'Devices::Galaxy_S9'.freeze,
|
|
24
|
+
GalaxyS9Plus: 'Devices::Galaxy_S9_Plus'.freeze,
|
|
25
|
+
GalaxyS10: 'Devices::Galaxy_S10'.freeze,
|
|
26
|
+
GalaxyS10Plus: 'Devices::Galaxy_S10_Plus'.freeze,
|
|
27
|
+
GalaxyS20: 'Devices::Galaxy_S20'.freeze,
|
|
28
|
+
# IPad: 'Devices::IPad'.freeze,
|
|
29
|
+
IPad6thGen: 'Devices::IPad_6th_Gen'.freeze,
|
|
30
|
+
IPad7thGen: 'Devices::IPad_7th_Gen'.freeze,
|
|
31
|
+
IPadAir2: 'Devices::IPad_Air_2'.freeze,
|
|
32
|
+
IPadMini: 'Devices::IPad_Mini'.freeze,
|
|
33
|
+
IPadPro: 'Devices::IPad_Pro'.freeze,
|
|
34
|
+
IPhone11: 'Devices::IPhone_11'.freeze,
|
|
35
|
+
IPhone11Pro: 'Devices::IPhone_11_Pro'.freeze,
|
|
36
|
+
IPhone11ProMax: 'Devices::IPhone_11_Pro_Max'.freeze,
|
|
37
|
+
IPhone4: 'Devices::IPhone_4'.freeze,
|
|
38
|
+
IPhone5SE: 'Devices::IPhone_5SE'.freeze,
|
|
39
|
+
IPhone678: 'Devices::IPhone_6_7_8'.freeze,
|
|
40
|
+
IPhone678Plus: 'Devices::IPhone_6_7_8_Plus'.freeze,
|
|
41
|
+
IPhoneX: 'Devices::IPhone_X'.freeze,
|
|
42
|
+
IPhoneXR: 'Devices::IPhone_XR'.freeze,
|
|
43
|
+
IPhoneXS: 'Devices::IPhone_XS'.freeze,
|
|
44
|
+
IPhoneXSMax: 'Devices::IPhone_XS_Max'.freeze,
|
|
45
|
+
|
|
46
|
+
KindleFireHDX: 'Devices::Kindle_Fire_HDX'.freeze,
|
|
47
|
+
LaptopWithHIDPIScreen: 'Devices::Laptop_with_HiDPI_screen'.freeze,
|
|
48
|
+
LaptopWithMDPIScreen: 'Devices::Laptop_with_MDPI_screen'.freeze,
|
|
49
|
+
LaptopWithTouch: 'Devices::Laptop_with_touch'.freeze,
|
|
50
|
+
LGG6: 'Devices::LG_G6'.freeze,
|
|
51
|
+
LGOptimusL70: 'Devices::LG_Optimus_L70'.freeze,
|
|
52
|
+
MicrosoftLumia550: 'Devices::Microsoft_Lumia_550'.freeze,
|
|
53
|
+
MicrosoftLumia950: 'Devices::Microsoft_Lumia_950'.freeze,
|
|
54
|
+
Nexus10: 'Devices::Nexus_10'.freeze,
|
|
55
|
+
Nexus4: 'Devices::Nexus_4'.freeze,
|
|
56
|
+
Nexus5: 'Devices::Nexus_5'.freeze,
|
|
57
|
+
Nexus5X: 'Devices::Nexus_5X'.freeze,
|
|
58
|
+
Nexus6: 'Devices::Nexus_6'.freeze,
|
|
59
|
+
Nexus6P: 'Devices::Nexus_6P'.freeze,
|
|
60
|
+
Nexus7: 'Devices::Nexus_7'.freeze,
|
|
61
|
+
|
|
62
|
+
NokiaLumia520: 'Devices::Nokia_Lumia_520'.freeze,
|
|
63
|
+
NokiaN9: 'Devices::Nokia_N9'.freeze,
|
|
64
|
+
OnePlus7T: 'Devices::OnePlus_7T'.freeze,
|
|
65
|
+
OnePlus7TPro: 'Devices::OnePlus_7T_Pro'.freeze,
|
|
78
66
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# GalaxyNote8,
|
|
90
|
-
GalaxyNote9,
|
|
91
|
-
GalaxyS3,
|
|
92
|
-
GalaxyS5,
|
|
93
|
-
# GalaxyS8,
|
|
94
|
-
# GalaxyS8Plus,
|
|
95
|
-
GalaxyS9,
|
|
96
|
-
GalaxyS9Plus,
|
|
97
|
-
GalaxyS10,
|
|
98
|
-
GalaxyS10Plus,
|
|
99
|
-
GalaxyS20,
|
|
100
|
-
IPad,
|
|
101
|
-
IPad6thGen,
|
|
102
|
-
IPad7thGen,
|
|
103
|
-
IPadAir2,
|
|
104
|
-
IPadMini,
|
|
105
|
-
IPadPro,
|
|
106
|
-
IPhone11,
|
|
107
|
-
IPhone11Pro,
|
|
108
|
-
IPhone11ProMax,
|
|
109
|
-
IPhone4,
|
|
110
|
-
IPhone5SE,
|
|
111
|
-
IPhone678,
|
|
112
|
-
IPhone678Plus,
|
|
113
|
-
IPhoneX,
|
|
114
|
-
IPhoneXR,
|
|
115
|
-
IPhoneXS,
|
|
116
|
-
IPhoneXSMax,
|
|
117
|
-
IPhone14,
|
|
118
|
-
IPhone14ProMax,
|
|
119
|
-
KindleFireHDX,
|
|
120
|
-
LaptopWithHIDPIScreen,
|
|
121
|
-
LaptopWithMDPIScreen,
|
|
122
|
-
LaptopWithTouch,
|
|
123
|
-
LGG6,
|
|
124
|
-
LGOptimusL70,
|
|
125
|
-
MicrosoftLumia550,
|
|
126
|
-
MicrosoftLumia950,
|
|
127
|
-
Nexus10,
|
|
128
|
-
Nexus4,
|
|
129
|
-
Nexus5,
|
|
130
|
-
Nexus5X,
|
|
131
|
-
Nexus6,
|
|
132
|
-
Nexus6P,
|
|
133
|
-
Nexus7,
|
|
134
|
-
NokiaLumia520,
|
|
135
|
-
NokiaN9,
|
|
136
|
-
OnePlus7T,
|
|
137
|
-
OnePlus7TPro,
|
|
138
|
-
Pixel2,
|
|
139
|
-
Pixel2XL,
|
|
140
|
-
Pixel3,
|
|
141
|
-
Pixel3XL,
|
|
142
|
-
Pixel4,
|
|
143
|
-
Pixel4XL,
|
|
144
|
-
Pixel5,
|
|
145
|
-
Pixel6,
|
|
146
|
-
XiaomiRedmiNote11,
|
|
147
|
-
XiaomiRedmiNote11Pro,
|
|
148
|
-
GalaxyS22,
|
|
149
|
-
GalaxyS22Plus,
|
|
150
|
-
GalaxyTabS7,
|
|
151
|
-
GalaxyTabS8
|
|
152
|
-
]
|
|
67
|
+
Pixel2: 'Devices::Pixel_2'.freeze,
|
|
68
|
+
Pixel2XL: 'Devices::Pixel_2_XL'.freeze,
|
|
69
|
+
Pixel3: 'Devices::Pixel_3'.freeze,
|
|
70
|
+
Pixel3XL: 'Devices::Pixel_3_XL'.freeze,
|
|
71
|
+
Pixel4: 'Devices::Pixel_4'.freeze,
|
|
72
|
+
Pixel4XL: 'Devices::Pixel_4_XL'.freeze,
|
|
73
|
+
Pixel5: 'Devices::Pixel_5'.freeze,
|
|
74
|
+
GalaxyS22: 'Devices::Galaxy_S22'.freeze,
|
|
75
|
+
GalaxyTabS7: 'Devices::Galaxy_Tab_S7'.freeze,
|
|
76
|
+
}
|
|
153
77
|
end
|
|
78
|
+
|
|
79
|
+
# looks like this was added here by mistake by https://trello.com/c/M1YiwtHb
|
|
80
|
+
# so as it not work, then can be ignored
|
|
81
|
+
# def support_drop_for_device_name
|
|
82
|
+
# {
|
|
83
|
+
# IPhone14: 'iPhone 14'.freeze,
|
|
84
|
+
# IPhone14ProMax: 'iPhone 14 Pro Max'.freeze,
|
|
85
|
+
# }
|
|
86
|
+
# end
|
|
87
|
+
|
|
88
|
+
# looks like this was added here by mistake by https://trello.com/c/SZAPDKSI
|
|
89
|
+
# so as it not work, then can be ignored
|
|
90
|
+
# def unsupported_devices_from_android12
|
|
91
|
+
# {
|
|
92
|
+
# XiaomiRedmiNote11: 'Xiaomi Redmi Note 11'.freeze,
|
|
93
|
+
# XiaomiRedmiNote11Pro: 'Xiaomi Redmi Note 11 Pro'.freeze,
|
|
94
|
+
# Pixel6: 'Pixel 6'.freeze,
|
|
95
|
+
# GalaxyS22Plus: 'Galaxy S22 Plus'.freeze,
|
|
96
|
+
# GalaxyTabS8: 'Galaxy Tab S8'.freeze
|
|
97
|
+
# }
|
|
98
|
+
# end
|
|
99
|
+
|
|
100
|
+
def const_missing(name)
|
|
101
|
+
if pascal_device_name.include?(name)
|
|
102
|
+
# deprecate_constant :... not allow to point to new version (
|
|
103
|
+
puts "Warning: constant Devices::#{name} is deprecated use #{pascal_device_name[name]} instead."
|
|
104
|
+
const_get(pascal_device_name[name])
|
|
105
|
+
else
|
|
106
|
+
super
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# now actual enum_values are in generated file
|
|
154
111
|
end
|
|
@@ -1,45 +1,49 @@
|
|
|
1
1
|
# frozen_string_literal: false
|
|
2
|
+
require_relative 'android_device_name_generated'
|
|
3
|
+
|
|
2
4
|
module AndroidDeviceName
|
|
5
|
+
include AndroidDeviceNameGenerated
|
|
3
6
|
extend self
|
|
4
|
-
Pixel3XL = 'Pixel 3 XL'.freeze
|
|
5
|
-
Pixel4 = 'Pixel 4'.freeze
|
|
6
|
-
Pixel4XL = 'Pixel 4 XL'.freeze
|
|
7
|
-
GalaxyNote8 = 'Galaxy Note 8'.freeze
|
|
8
|
-
GalaxyNote9 = 'Galaxy Note 9'.freeze
|
|
9
|
-
GalaxyS8 = 'Galaxy S8'.freeze
|
|
10
|
-
GalaxyS8Plus = 'Galaxy S8 Plus'.freeze
|
|
11
|
-
GalaxyS9 = 'Galaxy S9'.freeze
|
|
12
|
-
GalaxyS9Plus = 'Galaxy S9 Plus'.freeze
|
|
13
|
-
GalaxyS10 = 'Galaxy S10'.freeze
|
|
14
|
-
GalaxyS10Plus = 'Galaxy S10 Plus'.freeze
|
|
15
|
-
GalaxyNote10 = 'Galaxy Note 10'.freeze
|
|
16
|
-
GalaxyNote10Plus = 'Galaxy Note 10 Plus'.freeze
|
|
17
|
-
GalaxyS20 = 'Galaxy S20'.freeze
|
|
18
|
-
GalaxyS20Plus = 'Galaxy S20 Plus'.freeze
|
|
19
|
-
GalaxyS21 = 'Galaxy S21'.freeze
|
|
20
|
-
GalaxyS21Plus = 'Galaxy S21 Plus'.freeze
|
|
21
|
-
GalaxyS21Ultra = 'Galaxy S21 Ultra'.freeze
|
|
22
7
|
|
|
23
|
-
def
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
def support_drop_for_android_device_name
|
|
9
|
+
{
|
|
10
|
+
GalaxyNote8: 'Galaxy Note 8'.freeze,
|
|
11
|
+
GalaxyNote9: 'Galaxy Note 9'.freeze,
|
|
12
|
+
GalaxyS8: 'Galaxy S8'.freeze,
|
|
13
|
+
GalaxyS8Plus: 'Galaxy S8 Plus'.freeze,
|
|
14
|
+
GalaxyS9Plus: 'Galaxy S9 Plus'.freeze,
|
|
15
|
+
}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def pascal_android_device_name
|
|
19
|
+
{
|
|
20
|
+
Pixel3XL: 'AndroidDeviceName::Pixel_3_XL'.freeze,
|
|
21
|
+
Pixel4: 'AndroidDeviceName::Pixel_4'.freeze,
|
|
22
|
+
Pixel4XL: 'AndroidDeviceName::Pixel_4_XL'.freeze,
|
|
23
|
+
GalaxyS9: 'AndroidDeviceName::Galaxy_S9'.freeze,
|
|
24
|
+
GalaxyS10: 'AndroidDeviceName::Galaxy_S10'.freeze,
|
|
25
|
+
GalaxyS10Plus: 'AndroidDeviceName::Galaxy_S10_Plus'.freeze,
|
|
26
|
+
GalaxyNote10: 'AndroidDeviceName::Galaxy_Note_10'.freeze,
|
|
27
|
+
GalaxyNote10Plus: 'AndroidDeviceName::Galaxy_Note_10_Plus'.freeze,
|
|
28
|
+
GalaxyS20: 'AndroidDeviceName::Galaxy_S20'.freeze,
|
|
29
|
+
GalaxyS20Plus: 'AndroidDeviceName::Galaxy_S20_Plus'.freeze,
|
|
30
|
+
GalaxyS21: 'AndroidDeviceName::Galaxy_S21'.freeze,
|
|
31
|
+
GalaxyS21Plus: 'AndroidDeviceName::Galaxy_S21_Plus'.freeze,
|
|
32
|
+
GalaxyS21Ultra: 'AndroidDeviceName::Galaxy_S21_Ultra'.freeze,
|
|
33
|
+
}
|
|
44
34
|
end
|
|
35
|
+
|
|
36
|
+
def const_missing(name)
|
|
37
|
+
if pascal_android_device_name.include?(name)
|
|
38
|
+
# deprecate_constant :... not allow to point to new version (
|
|
39
|
+
puts "Warning: constant AndroidDeviceName::#{name} is deprecated use #{pascal_android_device_name[name]} instead."
|
|
40
|
+
const_get(pascal_android_device_name[name])
|
|
41
|
+
elsif support_drop_for_android_device_name.include?(name)
|
|
42
|
+
raise Applitools::EyesIllegalArgument, 'support dropped for Android 9/10 specific devices, try to use more modern device'
|
|
43
|
+
else
|
|
44
|
+
super
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# now actual enum_values are in generated file
|
|
45
49
|
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# GENERATED FILE #
|
|
2
|
+
|
|
3
|
+
module AndroidDeviceNameGenerated
|
|
4
|
+
extend self
|
|
5
|
+
Galaxy_S20 = 'Galaxy S20'.freeze
|
|
6
|
+
Galaxy_S20_Plus = 'Galaxy S20 Plus'.freeze
|
|
7
|
+
|
|
8
|
+
# Deprecated: Use AndroidDeviceName::Galaxy_S20_Plus instead.
|
|
9
|
+
# deprecate_constant :Galaxy_S20_PLUS not allow to point to new version (
|
|
10
|
+
Galaxy_S20_PLUS = 'Galaxy S20 Plus'.freeze
|
|
11
|
+
Galaxy_S21_Ultra = 'Galaxy S21 Ultra'.freeze
|
|
12
|
+
|
|
13
|
+
# Deprecated: Use AndroidDeviceName::Galaxy_S21_Ultra instead.
|
|
14
|
+
# deprecate_constant :Galaxy_S21_ULTRA not allow to point to new version (
|
|
15
|
+
Galaxy_S21_ULTRA = 'Galaxy S21 Ultra'.freeze
|
|
16
|
+
Galaxy_Note_10_Plus = 'Galaxy Note 10 Plus'.freeze
|
|
17
|
+
Galaxy_S9 = 'Galaxy S9'.freeze
|
|
18
|
+
Galaxy_S10 = 'Galaxy S10'.freeze
|
|
19
|
+
Galaxy_S10_Plus = 'Galaxy S10 Plus'.freeze
|
|
20
|
+
Pixel_4_XL = 'Pixel 4 XL'.freeze
|
|
21
|
+
Pixel_3_XL = 'Pixel 3 XL'.freeze
|
|
22
|
+
Galaxy_S21 = 'Galaxy S21'.freeze
|
|
23
|
+
Galaxy_S21_Plus = 'Galaxy S21 Plus'.freeze
|
|
24
|
+
|
|
25
|
+
# Deprecated: Use AndroidDeviceName::Galaxy_S21_Plus instead.
|
|
26
|
+
# deprecate_constant :Galaxy_S21_PLUS not allow to point to new version (
|
|
27
|
+
Galaxy_S21_PLUS = 'Galaxy S21 Plus'.freeze
|
|
28
|
+
Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'.freeze
|
|
29
|
+
Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11'.freeze
|
|
30
|
+
Xiaomi_Redmi_Note_10_JE = 'Xiaomi Redmi Note 10 JE'.freeze
|
|
31
|
+
Pixel_6 = 'Pixel 6'.freeze
|
|
32
|
+
Galaxy_Note_10 = 'Galaxy Note 10'.freeze
|
|
33
|
+
Pixel_4 = 'Pixel 4'.freeze
|
|
34
|
+
Pixel_5 = 'Pixel 5'.freeze
|
|
35
|
+
Galaxy_S22 = 'Galaxy S22'.freeze
|
|
36
|
+
Galaxy_S22_Plus = 'Galaxy S22 Plus'.freeze
|
|
37
|
+
Galaxy_Tab_S8 = 'Galaxy Tab S8'.freeze
|
|
38
|
+
Galaxy_Tab_S7 = 'Galaxy Tab S7'.freeze
|
|
39
|
+
Sony_Xperia_10_II = 'Sony Xperia 10 II'.freeze
|
|
40
|
+
Sony_Xperia_1_II = 'Sony Xperia 1 II'.freeze
|
|
41
|
+
Sony_Xperia_Ace_II = 'Sony Xperia Ace II'.freeze
|
|
42
|
+
Huawei_P30_Lite = 'Huawei P30 Lite'.freeze
|
|
43
|
+
|
|
44
|
+
def enum_values
|
|
45
|
+
[
|
|
46
|
+
Galaxy_S20,
|
|
47
|
+
Galaxy_S20_Plus,
|
|
48
|
+
Galaxy_S20_PLUS, # Deprecated: Use AndroidDeviceName::Galaxy_S20_Plus instead.
|
|
49
|
+
Galaxy_S21_Ultra,
|
|
50
|
+
Galaxy_S21_ULTRA, # Deprecated: Use AndroidDeviceName::Galaxy_S21_Ultra instead.
|
|
51
|
+
Galaxy_Note_10_Plus,
|
|
52
|
+
Galaxy_S9,
|
|
53
|
+
Galaxy_S10,
|
|
54
|
+
Galaxy_S10_Plus,
|
|
55
|
+
Pixel_4_XL,
|
|
56
|
+
Pixel_3_XL,
|
|
57
|
+
Galaxy_S21,
|
|
58
|
+
Galaxy_S21_Plus,
|
|
59
|
+
Galaxy_S21_PLUS, # Deprecated: Use AndroidDeviceName::Galaxy_S21_Plus instead.
|
|
60
|
+
Xiaomi_Redmi_Note_11_Pro,
|
|
61
|
+
Xiaomi_Redmi_Note_11,
|
|
62
|
+
Xiaomi_Redmi_Note_10_JE,
|
|
63
|
+
Pixel_6,
|
|
64
|
+
Galaxy_Note_10,
|
|
65
|
+
Pixel_4,
|
|
66
|
+
Pixel_5,
|
|
67
|
+
Galaxy_S22,
|
|
68
|
+
Galaxy_S22_Plus,
|
|
69
|
+
Galaxy_Tab_S8,
|
|
70
|
+
Galaxy_Tab_S7,
|
|
71
|
+
Sony_Xperia_10_II,
|
|
72
|
+
Sony_Xperia_1_II,
|
|
73
|
+
Sony_Xperia_Ace_II,
|
|
74
|
+
Huawei_P30_Lite,
|
|
75
|
+
]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -1,54 +1,6 @@
|
|
|
1
|
+
require_relative 'ios_device_name_generated'
|
|
2
|
+
|
|
1
3
|
module IosDeviceName
|
|
4
|
+
include IosDeviceNameGenerated
|
|
2
5
|
extend self
|
|
3
|
-
IPhone_14 = 'iPhone 14'
|
|
4
|
-
IPhone_14_Pro_Max = 'iPhone 14 Pro Max'
|
|
5
|
-
IPhone_13_Pro_Max = 'iPhone 13 Pro Max'
|
|
6
|
-
IPhone_13_Pro = 'iPhone 13 Pro'
|
|
7
|
-
IPhone_13 = 'iPhone 13'
|
|
8
|
-
IPhone_12_Pro_Max = 'iPhone 12 Pro Max'
|
|
9
|
-
IPhone_12_Pro = 'iPhone 12 Pro'
|
|
10
|
-
IPhone_12 = 'iPhone 12'
|
|
11
|
-
IPhone_12_mini = 'iPhone 12 mini'
|
|
12
|
-
IPhone_11_Pro = 'iPhone 11 Pro'
|
|
13
|
-
IPhone_11_Pro_Max = 'iPhone 11 Pro Max'
|
|
14
|
-
IPhone_11 = 'iPhone 11'
|
|
15
|
-
IPhone_XR = 'iPhone XR'
|
|
16
|
-
IPhone_XS = 'iPhone Xs'
|
|
17
|
-
IPhone_X = 'iPhone X'
|
|
18
|
-
IPhone_8 = 'iPhone 8'
|
|
19
|
-
IPhone_7 = 'iPhone 7'
|
|
20
|
-
IPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)'
|
|
21
|
-
IPad_7 = 'iPad (7th generation)'
|
|
22
|
-
IPad_9 = 'iPad (9th generation)'
|
|
23
|
-
IPad_Air_2 = 'iPad Air (2nd generation)'
|
|
24
|
-
IPhone_8_Plus = 'iPhone 8 Plus'
|
|
25
|
-
IPhone_SE = 'iPhone SE (1st generation)'
|
|
26
|
-
|
|
27
|
-
def enum_values
|
|
28
|
-
[
|
|
29
|
-
IPhone_14,
|
|
30
|
-
IPhone_14_Pro_Max,
|
|
31
|
-
IPhone_13_Pro_Max,
|
|
32
|
-
IPhone_13_Pro,
|
|
33
|
-
IPhone_13,
|
|
34
|
-
IPhone_12_Pro_Max,
|
|
35
|
-
IPhone_12_Pro,
|
|
36
|
-
IPhone_12,
|
|
37
|
-
IPhone_12_mini,
|
|
38
|
-
IPhone_11_Pro,
|
|
39
|
-
IPhone_11_Pro_Max,
|
|
40
|
-
IPhone_11,
|
|
41
|
-
IPhone_XR,
|
|
42
|
-
IPhone_XS,
|
|
43
|
-
IPhone_X,
|
|
44
|
-
IPhone_8,
|
|
45
|
-
IPhone_7,
|
|
46
|
-
IPad_Pro_3,
|
|
47
|
-
IPad_7,
|
|
48
|
-
IPad_9,
|
|
49
|
-
IPad_Air_2,
|
|
50
|
-
IPhone_8_Plus,
|
|
51
|
-
IPhone_SE
|
|
52
|
-
]
|
|
53
|
-
end
|
|
54
6
|
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# GENERATED FILE #
|
|
2
|
+
|
|
3
|
+
module IosDeviceNameGenerated
|
|
4
|
+
extend self
|
|
5
|
+
IPad_5 = 'iPad (5th generation)'.freeze
|
|
6
|
+
IPad_6 = 'iPad (6th generation)'.freeze
|
|
7
|
+
IPad_7 = 'iPad (7th generation)'.freeze
|
|
8
|
+
IPad_8 = 'iPad (8th generation)'.freeze
|
|
9
|
+
IPad_9 = 'iPad (9th generation)'.freeze
|
|
10
|
+
IPad_10 = 'iPad (10th generation)'.freeze
|
|
11
|
+
IPad_Air_2 = 'iPad Air 2'.freeze
|
|
12
|
+
IPad_Air_3 = 'iPad Air (3rd generation)'.freeze
|
|
13
|
+
IPad_Air_4 = 'iPad Air (4th generation)'.freeze
|
|
14
|
+
IPad_Air_5 = 'iPad Air (5th generation)'.freeze
|
|
15
|
+
IPad_mini_4 = 'iPad mini 4'.freeze
|
|
16
|
+
IPad_mini_5 = 'iPad mini (5th generation)'.freeze
|
|
17
|
+
IPad_mini_6 = 'iPad mini (6th generation)'.freeze
|
|
18
|
+
IPad_Pro_9_7_inch_1 = 'iPad Pro (9.7-inch)'.freeze
|
|
19
|
+
IPad_Pro_10_5_inch_1 = 'iPad Pro (10.5-inch)'.freeze
|
|
20
|
+
IPad_Pro_11_inch_1 = 'iPad Pro (11-inch) (1st generation)'.freeze
|
|
21
|
+
IPad_Pro_12_9_inch_1 = 'iPad Pro (12.9-inch) (1st generation)'.freeze
|
|
22
|
+
IPad_Pro_11_inch_2 = 'iPad Pro (11-inch) (2nd generation)'.freeze
|
|
23
|
+
IPad_Pro_12_9_inch_2 = 'iPad Pro (12.9-inch) (2nd generation)'.freeze
|
|
24
|
+
IPad_Pro_11_inch_3 = 'iPad Pro (11-inch) (3rd generation)'.freeze
|
|
25
|
+
|
|
26
|
+
# Deprecated: Use IosDeviceName::IPad_Pro_12_9_inch_3 instead.
|
|
27
|
+
# deprecate_constant :IPad_Pro_3 not allow to point to new version (
|
|
28
|
+
IPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)'.freeze
|
|
29
|
+
IPad_Pro_12_9_inch_3 = 'iPad Pro (12.9-inch) (3rd generation)'.freeze
|
|
30
|
+
|
|
31
|
+
# Deprecated: Use IosDeviceName::IPad_Pro_11_inch_4 instead.
|
|
32
|
+
# deprecate_constant :IPad_Pro_4 not allow to point to new version (
|
|
33
|
+
IPad_Pro_4 = 'iPad Pro (11-inch) (4th generation)'.freeze
|
|
34
|
+
IPad_Pro_11_inch_4 = 'iPad Pro (11-inch) (4th generation)'.freeze
|
|
35
|
+
IPad_Pro_12_9_inch_4 = 'iPad Pro (12.9-inch) (4th generation)'.freeze
|
|
36
|
+
IPad_Pro_12_9_inch_5 = 'iPad Pro (12.9-inch) (5th generation)'.freeze
|
|
37
|
+
IPad_Pro_12_9_inch_6 = 'iPad Pro (12.9-inch) (6th generation)'.freeze
|
|
38
|
+
IPhone_6s = 'iPhone 6s'.freeze
|
|
39
|
+
IPhone_6s_Plus = 'iPhone 6s Plus'.freeze
|
|
40
|
+
IPhone_7 = 'iPhone 7'.freeze
|
|
41
|
+
IPhone_7_Plus = 'iPhone 7 Plus'.freeze
|
|
42
|
+
IPhone_8 = 'iPhone 8'.freeze
|
|
43
|
+
IPhone_8_Plus = 'iPhone 8 Plus'.freeze
|
|
44
|
+
IPhone_X = 'iPhone X'.freeze
|
|
45
|
+
IPhone_XR = 'iPhone XR'.freeze
|
|
46
|
+
|
|
47
|
+
# Deprecated: Use IosDeviceName::IPhone_Xs instead.
|
|
48
|
+
# deprecate_constant :IPhone_XS not allow to point to new version (
|
|
49
|
+
IPhone_XS = 'iPhone Xs'.freeze
|
|
50
|
+
IPhone_Xs = 'iPhone Xs'.freeze
|
|
51
|
+
IPhone_Xs_Max = 'iPhone Xs Max'.freeze
|
|
52
|
+
IPhone_11 = 'iPhone 11'.freeze
|
|
53
|
+
IPhone_11_Pro_Max = 'iPhone 11 Pro Max'.freeze
|
|
54
|
+
IPhone_11_Pro = 'iPhone 11 Pro'.freeze
|
|
55
|
+
IPhone_12 = 'iPhone 12'.freeze
|
|
56
|
+
IPhone_12_mini = 'iPhone 12 mini'.freeze
|
|
57
|
+
IPhone_12_Pro_Max = 'iPhone 12 Pro Max'.freeze
|
|
58
|
+
IPhone_12_Pro = 'iPhone 12 Pro'.freeze
|
|
59
|
+
IPhone_13 = 'iPhone 13'.freeze
|
|
60
|
+
IPhone_13_mini = 'iPhone 13 mini'.freeze
|
|
61
|
+
IPhone_13_Pro_Max = 'iPhone 13 Pro Max'.freeze
|
|
62
|
+
IPhone_13_Pro = 'iPhone 13 Pro'.freeze
|
|
63
|
+
IPhone_14 = 'iPhone 14'.freeze
|
|
64
|
+
IPhone_14_Plus = 'iPhone 14 Plus'.freeze
|
|
65
|
+
IPhone_14_Pro = 'iPhone 14 Pro'.freeze
|
|
66
|
+
IPhone_14_Pro_Max = 'iPhone 14 Pro Max'.freeze
|
|
67
|
+
IPhone_15 = 'iPhone 15'.freeze
|
|
68
|
+
IPhone_15_Plus = 'iPhone 15 Plus'.freeze
|
|
69
|
+
IPhone_15_Pro = 'iPhone 15 Pro'.freeze
|
|
70
|
+
IPhone_15_Pro_Max = 'iPhone 15 Pro Max'.freeze
|
|
71
|
+
|
|
72
|
+
# Deprecated: Use IosDeviceName::IPhone_SE_1 instead.
|
|
73
|
+
# deprecate_constant :IPhone_SE not allow to point to new version (
|
|
74
|
+
IPhone_SE = 'iPhone SE (1st generation)'.freeze
|
|
75
|
+
IPhone_SE_1 = 'iPhone SE (1st generation)'.freeze
|
|
76
|
+
IPhone_SE_2 = 'iPhone SE (2nd generation)'.freeze
|
|
77
|
+
IPhone_SE_3 = 'iPhone SE (3rd generation)'.freeze
|
|
78
|
+
IPod_touch_7 = 'iPod touch (7th generation)'.freeze
|
|
79
|
+
|
|
80
|
+
def enum_values
|
|
81
|
+
[
|
|
82
|
+
IPad_5,
|
|
83
|
+
IPad_6,
|
|
84
|
+
IPad_7,
|
|
85
|
+
IPad_8,
|
|
86
|
+
IPad_9,
|
|
87
|
+
IPad_10,
|
|
88
|
+
IPad_Air_2,
|
|
89
|
+
IPad_Air_3,
|
|
90
|
+
IPad_Air_4,
|
|
91
|
+
IPad_Air_5,
|
|
92
|
+
IPad_mini_4,
|
|
93
|
+
IPad_mini_5,
|
|
94
|
+
IPad_mini_6,
|
|
95
|
+
IPad_Pro_9_7_inch_1,
|
|
96
|
+
IPad_Pro_10_5_inch_1,
|
|
97
|
+
IPad_Pro_11_inch_1,
|
|
98
|
+
IPad_Pro_12_9_inch_1,
|
|
99
|
+
IPad_Pro_11_inch_2,
|
|
100
|
+
IPad_Pro_12_9_inch_2,
|
|
101
|
+
IPad_Pro_11_inch_3,
|
|
102
|
+
IPad_Pro_3, # Deprecated: Use IosDeviceName::IPad_Pro_12_9_inch_3 instead.
|
|
103
|
+
IPad_Pro_12_9_inch_3,
|
|
104
|
+
IPad_Pro_4, # Deprecated: Use IosDeviceName::IPad_Pro_11_inch_4 instead.
|
|
105
|
+
IPad_Pro_11_inch_4,
|
|
106
|
+
IPad_Pro_12_9_inch_4,
|
|
107
|
+
IPad_Pro_12_9_inch_5,
|
|
108
|
+
IPad_Pro_12_9_inch_6,
|
|
109
|
+
IPhone_6s,
|
|
110
|
+
IPhone_6s_Plus,
|
|
111
|
+
IPhone_7,
|
|
112
|
+
IPhone_7_Plus,
|
|
113
|
+
IPhone_8,
|
|
114
|
+
IPhone_8_Plus,
|
|
115
|
+
IPhone_X,
|
|
116
|
+
IPhone_XR,
|
|
117
|
+
IPhone_XS, # Deprecated: Use IosDeviceName::IPhone_Xs instead.
|
|
118
|
+
IPhone_Xs,
|
|
119
|
+
IPhone_Xs_Max,
|
|
120
|
+
IPhone_11,
|
|
121
|
+
IPhone_11_Pro_Max,
|
|
122
|
+
IPhone_11_Pro,
|
|
123
|
+
IPhone_12,
|
|
124
|
+
IPhone_12_mini,
|
|
125
|
+
IPhone_12_Pro_Max,
|
|
126
|
+
IPhone_12_Pro,
|
|
127
|
+
IPhone_13,
|
|
128
|
+
IPhone_13_mini,
|
|
129
|
+
IPhone_13_Pro_Max,
|
|
130
|
+
IPhone_13_Pro,
|
|
131
|
+
IPhone_14,
|
|
132
|
+
IPhone_14_Plus,
|
|
133
|
+
IPhone_14_Pro,
|
|
134
|
+
IPhone_14_Pro_Max,
|
|
135
|
+
IPhone_15,
|
|
136
|
+
IPhone_15_Plus,
|
|
137
|
+
IPhone_15_Pro,
|
|
138
|
+
IPhone_15_Pro_Max,
|
|
139
|
+
IPhone_SE, # Deprecated: Use IosDeviceName::IPhone_SE_1 instead.
|
|
140
|
+
IPhone_SE_1,
|
|
141
|
+
IPhone_SE_2,
|
|
142
|
+
IPhone_SE_3,
|
|
143
|
+
IPod_touch_7,
|
|
144
|
+
]
|
|
145
|
+
end
|
|
146
|
+
end
|
data/lib/eyes_selenium.rb
CHANGED
|
@@ -24,6 +24,7 @@ end
|
|
|
24
24
|
Applitools::Selenium.require_dir 'selenium/concerns'
|
|
25
25
|
Applitools::Selenium.require_dir 'selenium/scripts'
|
|
26
26
|
Applitools::Selenium.require_dir 'selenium'
|
|
27
|
+
Applitools::Selenium.require_dir 'eyes_selenium'
|
|
27
28
|
Applitools::Selenium.require_dir 'selenium/visual_grid'
|
|
28
29
|
Applitools::Selenium.require_dir 'selenium/dom_capture'
|
|
29
30
|
Applitools::Selenium.require_dir 'selenium/css_parser'
|
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: 6.0.
|
|
4
|
+
version: 6.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Applitools Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-03 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: 6.0.
|
|
19
|
+
version: 6.0.2
|
|
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: 6.0.
|
|
26
|
+
version: 6.0.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: selenium-webdriver
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,6 +102,7 @@ files:
|
|
|
102
102
|
- lib/applitools/selenium/css_transform/css_transform.rb
|
|
103
103
|
- lib/applitools/selenium/css_translate_element_position_provider.rb
|
|
104
104
|
- lib/applitools/selenium/css_translate_position_provider.rb
|
|
105
|
+
- lib/applitools/selenium/device_name_generated.rb
|
|
105
106
|
- lib/applitools/selenium/devices.rb
|
|
106
107
|
- lib/applitools/selenium/dom_capture/dom_capture.rb
|
|
107
108
|
- lib/applitools/selenium/dom_capture/dom_capture_script.rb
|
|
@@ -141,6 +142,7 @@ files:
|
|
|
141
142
|
- lib/applitools/selenium/viewport_size.rb
|
|
142
143
|
- lib/applitools/selenium/visual_grid/android_device_info.rb
|
|
143
144
|
- lib/applitools/selenium/visual_grid/android_device_name.rb
|
|
145
|
+
- lib/applitools/selenium/visual_grid/android_device_name_generated.rb
|
|
144
146
|
- lib/applitools/selenium/visual_grid/chrome_emulation_info.rb
|
|
145
147
|
- lib/applitools/selenium/visual_grid/desktop_browser_info.rb
|
|
146
148
|
- lib/applitools/selenium/visual_grid/dom_snapshot_script.rb
|
|
@@ -149,6 +151,7 @@ files:
|
|
|
149
151
|
- lib/applitools/selenium/visual_grid/i_render_browser_info.rb
|
|
150
152
|
- lib/applitools/selenium/visual_grid/ios_device_info.rb
|
|
151
153
|
- lib/applitools/selenium/visual_grid/ios_device_name.rb
|
|
154
|
+
- lib/applitools/selenium/visual_grid/ios_device_name_generated.rb
|
|
152
155
|
- lib/applitools/selenium/visual_grid/render_browser_info.rb
|
|
153
156
|
- lib/applitools/selenium/visual_grid/render_info.rb
|
|
154
157
|
- lib/applitools/selenium/visual_grid/render_request.rb
|