eyes_selenium 4.6.3 → 6.0.4
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 +558 -0
- data/Rakefile +86 -0
- data/eyes_selenium.gemspec +33 -0
- data/lib/applitools/eyes_selenium/version.rb +8 -0
- data/lib/applitools/selenium/browser_types.rb +2 -0
- 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/selenium_eyes.rb +7 -0
- data/lib/applitools/selenium/target.rb +5 -1
- 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/applitools/selenium/visual_grid/running_test.rb +1 -1
- data/lib/applitools/selenium/visual_grid/visual_grid_eyes.rb +45 -13
- data/lib/eyes_selenium.rb +6 -2
- metadata +13 -8
- data/lib/applitools/selenium/scripts/templates.rb +0 -34
- data/lib/applitools/version.rb +0 -8
|
@@ -23,6 +23,7 @@ module BrowserType
|
|
|
23
23
|
SAFARI = :'safari'
|
|
24
24
|
SAFARI_ONE_VERSION_BACK = :'safari-one-version-back'
|
|
25
25
|
SAFARI_TWO_VERSIONS_BACK = :'safari-two-versions-back'
|
|
26
|
+
SAFARI_EARLY_ACCESS = :'safari-earlyaccess'
|
|
26
27
|
IOS_SAFARI = :safari
|
|
27
28
|
|
|
28
29
|
EDGE_CHROMIUM = :'edgechromium'
|
|
@@ -61,6 +62,7 @@ module BrowserType
|
|
|
61
62
|
SAFARI,
|
|
62
63
|
SAFARI_ONE_VERSION_BACK,
|
|
63
64
|
SAFARI_TWO_VERSIONS_BACK,
|
|
65
|
+
SAFARI_EARLY_ACCESS,
|
|
64
66
|
IE_11,
|
|
65
67
|
EDGE_LEGACY,
|
|
66
68
|
IE_10,
|
|
@@ -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
|
|
@@ -131,6 +131,13 @@ module Applitools::Selenium
|
|
|
131
131
|
self.utils = Applitools::Utils::EyesSeleniumUtils
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
def self.environment_sdk
|
|
135
|
+
{
|
|
136
|
+
name: :eyes_selenium,
|
|
137
|
+
currentVersion: Applitools::EyesSelenium::VERSION
|
|
138
|
+
}
|
|
139
|
+
end
|
|
140
|
+
|
|
134
141
|
def ensure_config
|
|
135
142
|
self.config = Applitools::Selenium::Configuration.new
|
|
136
143
|
end
|
|
@@ -329,7 +329,11 @@ module Applitools
|
|
|
329
329
|
end
|
|
330
330
|
|
|
331
331
|
def layout_breakpoints(value = true)
|
|
332
|
-
|
|
332
|
+
if value.is_a?(Hash) && (value.has_key?(:breakpoints) || value.has_key?('breakpoints'))
|
|
333
|
+
options[:layout_breakpoints] = value
|
|
334
|
+
else
|
|
335
|
+
options[:layout_breakpoints] = { breakpoints: value }
|
|
336
|
+
end
|
|
333
337
|
self
|
|
334
338
|
end
|
|
335
339
|
|
|
@@ -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
|