ds-gui-automation 0.2.26 → 0.2.27
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/ds/version.rb +1 -1
- data/lib/page_objects/modules/commons.rb +35 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e332c09b65c0918ccc8dd27e2d43c282d79b03f7
|
4
|
+
data.tar.gz: d18e86dab4f2f11e2fdbc371c92e189c748aead6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f1eea523c4e8ecda64b5ae93c9215fb94332ef2ec31d683868414bb533b3c4ded534da81446ca263832cf6fa01b54c7365df1cc6c506a6cec80af6915d745c
|
7
|
+
data.tar.gz: f88b62bd9f73788b1aea3e59e72fbbaf78c9a8d424aa069fa7b9a888400089e89079afc7d0b8cbacb630690f270baedb550ba2c49501154bad9383da7700b246
|
data/lib/ds/version.rb
CHANGED
@@ -68,7 +68,10 @@ module Commons
|
|
68
68
|
|
69
69
|
timeout = 0
|
70
70
|
|
71
|
+
alert_handle
|
72
|
+
|
71
73
|
while !grid_results.present? and !cluster_results.present? and !new_design_grid.present? and timeout < 60
|
74
|
+
alert_handle
|
72
75
|
sleep 3
|
73
76
|
timeout += 3
|
74
77
|
end
|
@@ -79,7 +82,10 @@ module Commons
|
|
79
82
|
|
80
83
|
timeout = 0
|
81
84
|
|
85
|
+
alert_handle
|
86
|
+
|
82
87
|
while !browser.div(:class, 'ux-destination-services-detail-pricebox').present? and timeout < 60
|
88
|
+
alert_handle
|
83
89
|
sleep 6
|
84
90
|
timeout += 6
|
85
91
|
end
|
@@ -90,7 +96,10 @@ module Commons
|
|
90
96
|
|
91
97
|
timeout = 0
|
92
98
|
|
99
|
+
alert_handle
|
100
|
+
|
93
101
|
while browser.div(:class, 'ux-destination-services-detail-disney-pricebox-loading').visible? and timeout < 40
|
102
|
+
alert_handle
|
94
103
|
sleep 3
|
95
104
|
timeout += 3
|
96
105
|
end
|
@@ -101,7 +110,10 @@ module Commons
|
|
101
110
|
|
102
111
|
timeout = 0
|
103
112
|
|
113
|
+
alert_handle
|
114
|
+
|
104
115
|
while browser.div(:class, 'ux-destination-services-detail-universal-pricebox-loading').visible? and timeout < 40
|
116
|
+
alert_handle
|
105
117
|
sleep 3
|
106
118
|
timeout += 3
|
107
119
|
end
|
@@ -112,7 +124,10 @@ module Commons
|
|
112
124
|
|
113
125
|
timeout = 0
|
114
126
|
|
127
|
+
alert_handle
|
128
|
+
|
115
129
|
while browser.div(:class, 'modal').present? and timeout < 40
|
130
|
+
alert_handle
|
116
131
|
sleep 3
|
117
132
|
timeout += 3
|
118
133
|
end
|
@@ -122,8 +137,9 @@ module Commons
|
|
122
137
|
def wait_for_checkout
|
123
138
|
|
124
139
|
timeout = 0
|
125
|
-
|
140
|
+
alert_handle
|
126
141
|
while !browser.div(:class, 'ux-common-checkout-payment-method').present? and timeout < 60
|
142
|
+
alert_handle
|
127
143
|
sleep 3
|
128
144
|
timeout += 3
|
129
145
|
end
|
@@ -136,7 +152,10 @@ module Commons
|
|
136
152
|
|
137
153
|
timeout = 0
|
138
154
|
|
155
|
+
alert_handle
|
156
|
+
|
139
157
|
while browser.div(:class, 'ux-shopping-cart-spinner-overlay').span(:class, 'ux-shopping-cart-spinner').visible? and timeout < 40
|
158
|
+
alert_handle
|
140
159
|
sleep 3
|
141
160
|
timeout += 3
|
142
161
|
end
|
@@ -147,11 +166,26 @@ module Commons
|
|
147
166
|
|
148
167
|
timeout = 0
|
149
168
|
|
169
|
+
alert_handle
|
170
|
+
|
150
171
|
while browser.span(:class, 'ux-pricebox-spinner').visible? and timeout < 40
|
172
|
+
alert_handle
|
151
173
|
sleep 3
|
152
174
|
timeout += 3
|
153
175
|
end
|
154
176
|
|
155
177
|
end
|
156
178
|
|
179
|
+
def alert_handle
|
180
|
+
alert_not_present = true
|
181
|
+
max_retries = 0
|
182
|
+
while alert_not_present and (max_retries < 50)
|
183
|
+
alert = browser.driver.switch_to.alert rescue 'Alert not present'
|
184
|
+
alert_not_present = false unless alert == 'Alert not present'
|
185
|
+
sleep 1
|
186
|
+
max_retries += 2
|
187
|
+
end
|
188
|
+
browser.driver.switch_to.alert.accept
|
189
|
+
end
|
190
|
+
|
157
191
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ds-gui-automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Santiago Ochoa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|