testcentricity_web 3.1.5.1 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38c4e491cc52bf9fd3df698c6e597b902b8f2722
4
- data.tar.gz: 75426eb97812db8ce454ffac60b7b59a5b3d97fc
3
+ metadata.gz: 3576023f31b7c27ea1abd6e8e24613d441c79ce1
4
+ data.tar.gz: 78635445bac00d83066db607da4097175a538a2b
5
5
  SHA512:
6
- metadata.gz: 78343c36f6d1c566871ebd3f5e76bacc2007cb3a1f96cc748b758af565a24b63f489945e8a93bc59caefcc006a537a830f9d8b001b6a7805ec3af61bdb2c581d
7
- data.tar.gz: f994449036864f028da8ba6c1df705e8434faf8e39eb122e2025e1a68aaaa80115dc4a408e29fb68816e7c1cd3bff86551b1423a4d505fef47d8bc62a2b0ca29
6
+ metadata.gz: 42b4e0b47ee73eb1629d394cef4c4ced3d94d042058a96c1e8d9cf63f332fb28456c7757269468af5be3d5b7208ef9a4db167478b9d82b2df397499bed286814
7
+ data.tar.gz: 5f9738b0e5d5abea78777da9aceffcd33d50e7bcfec9d229d6e7aa2b055c2872fc6b3abe6b798f30b514fe68c93ccb282fa1ae6cd4dabfb22a930c36237a987d
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
 
5
+ ## [3.1.6] - 2019-01-20
6
+
7
+ ### Added
8
+ * Updated `PageObject.verify_ui_states` and `PageSection.verify_ui_states` methods to support verification of `name` property.
9
+
10
+
5
11
  ## [3.1.5] - 2019-01-06
6
12
 
7
13
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity_web (3.1.5)
4
+ testcentricity_web (3.1.6)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 3.1, < 4)
@@ -19,13 +19,13 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- addressable (2.5.2)
22
+ addressable (2.6.0)
23
23
  public_suffix (>= 2.0.2, < 4.0)
24
- appium_lib (9.16.1)
25
- appium_lib_core (~> 2.0)
24
+ appium_lib (9.18.0)
25
+ appium_lib_core (~> 2.3)
26
26
  nokogiri (~> 1.8, >= 1.8.1)
27
27
  tomlrb (~> 1.1)
28
- appium_lib_core (2.2.0)
28
+ appium_lib_core (2.3.2)
29
29
  faye-websocket (~> 0.10.0)
30
30
  selenium-webdriver (~> 3.14, >= 3.14.1)
31
31
  axiom-types (0.1.1)
@@ -56,23 +56,23 @@ GEM
56
56
  faye-websocket (0.10.7)
57
57
  eventmachine (>= 0.12.0)
58
58
  websocket-driver (>= 0.5.1)
59
- ffi (1.9.25)
60
- i18n (1.4.0)
59
+ ffi (1.10.0)
60
+ i18n (1.5.2)
61
61
  concurrent-ruby (~> 1.0)
62
62
  ice_nine (0.11.2)
63
63
  mini_mime (1.0.1)
64
- mini_portile2 (2.3.0)
64
+ mini_portile2 (2.4.0)
65
65
  net_http_ssl_fix (0.0.10)
66
- nokogiri (1.8.5)
67
- mini_portile2 (~> 2.3.0)
66
+ nokogiri (1.10.1)
67
+ mini_portile2 (~> 2.4.0)
68
68
  os (1.0.0)
69
69
  power_assert (1.1.3)
70
70
  public_suffix (3.0.3)
71
71
  rack (2.0.6)
72
72
  rack-test (1.1.0)
73
73
  rack (>= 1.0, < 3)
74
- rake (11.1.2)
75
- redcarpet (3.3.4)
74
+ rake (12.3.2)
75
+ redcarpet (3.4.0)
76
76
  regexp_parser (1.3.0)
77
77
  ruby-ole (1.2.12.1)
78
78
  rubyzip (1.2.2)
@@ -84,7 +84,7 @@ GEM
84
84
  test-unit (3.2.9)
85
85
  power_assert
86
86
  thread_safe (0.3.6)
87
- tomlrb (1.2.7)
87
+ tomlrb (1.2.8)
88
88
  virtus (1.0.5)
89
89
  axiom-types (~> 0.1)
90
90
  coercible (~> 1.0)
@@ -105,10 +105,10 @@ PLATFORMS
105
105
  ruby
106
106
 
107
107
  DEPENDENCIES
108
- bundler (~> 1.5)
108
+ bundler
109
109
  rake
110
110
  redcarpet
111
111
  testcentricity_web!
112
112
 
113
113
  BUNDLED WITH
114
- 1.16.4
114
+ 2.0.1
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.1.5.1'
2
+ VERSION = '3.1.6'
3
3
  end
@@ -40,9 +40,7 @@ module TestCentricity
40
40
  # log_out_item: 'a#logout'
41
41
  #
42
42
  def self.elements(element_hash)
43
- element_hash.each do |element_name, locator|
44
- element(element_name, locator)
45
- end
43
+ element_hash.each(&method(:element))
46
44
  end
47
45
 
48
46
  # Declare and instantiate a single button UI Element for this page object.
@@ -66,9 +64,7 @@ module TestCentricity
66
64
  # cancel_button: 'button#cancel'
67
65
  #
68
66
  def self.buttons(element_hash)
69
- element_hash.each do |element_name, locator|
70
- button(element_name, locator)
71
- end
67
+ element_hash.each(&method(:button))
72
68
  end
73
69
 
74
70
  # Declare and instantiate a single text field UI Element for this page object.
@@ -94,9 +90,7 @@ module TestCentricity
94
90
  # email_field: 'input#Email'
95
91
  #
96
92
  def self.textfields(element_hash)
97
- element_hash.each do |element_name, locator|
98
- textfield(element_name, locator)
99
- end
93
+ element_hash.each(&method(:textfield))
100
94
  end
101
95
 
102
96
  # Declare and instantiate a single checkbox UI Element for this page object.
@@ -122,9 +116,7 @@ module TestCentricity
122
116
  # carb_compliant_check: 'input#carbCompliant'
123
117
  #
124
118
  def self.checkboxes(element_hash)
125
- element_hash.each do |element_name, locator|
126
- checkbox(element_name, locator)
127
- end
119
+ element_hash.each(&method(:checkbox))
128
120
  end
129
121
 
130
122
  # Declare and instantiate a single radio button UI Element for this page object.
@@ -150,9 +142,7 @@ module TestCentricity
150
142
  # amex_radio: 'input#payWithAmEx'
151
143
  #
152
144
  def self.radios(element_hash)
153
- element_hash.each do |element_name, locator|
154
- radio(element_name, locator)
155
- end
145
+ element_hash.each(&method(:radio))
156
146
  end
157
147
 
158
148
  # Declare and instantiate a single label UI Element for this page object.
@@ -168,9 +158,7 @@ module TestCentricity
168
158
  end
169
159
 
170
160
  def self.labels(element_hash)
171
- element_hash.each do |element_name, locator|
172
- label(element_name, locator)
173
- end
161
+ element_hash.each(&method(:label))
174
162
  end
175
163
 
176
164
  # Declare and instantiate a single link UI Element for this page object.
@@ -186,9 +174,7 @@ module TestCentricity
186
174
  end
187
175
 
188
176
  def self.links(element_hash)
189
- element_hash.each do |element_name, locator|
190
- link(element_name, locator)
191
- end
177
+ element_hash.each(&method(:link))
192
178
  end
193
179
 
194
180
  # Declare and instantiate a single table UI Element for this page object.
@@ -203,9 +189,7 @@ module TestCentricity
203
189
  end
204
190
 
205
191
  def self.tables(element_hash)
206
- element_hash.each do |element_name, locator|
207
- table(element_name, locator)
208
- end
192
+ element_hash.each(&method(:table))
209
193
  end
210
194
 
211
195
  # Declare and instantiate a single select list UI Element for this page object.
@@ -221,9 +205,7 @@ module TestCentricity
221
205
  end
222
206
 
223
207
  def self.selectlists(element_hash)
224
- element_hash.each do |element_name, locator|
225
- selectlist(element_name, locator)
226
- end
208
+ element_hash.each(&method(:selectlist))
227
209
  end
228
210
 
229
211
  # Declare and instantiate a single list UI Element for this page object.
@@ -238,9 +220,7 @@ module TestCentricity
238
220
  end
239
221
 
240
222
  def self.lists(element_hash)
241
- element_hash.each do |element_name, locator|
242
- list(element_name, locator)
243
- end
223
+ element_hash.each(&method(:list))
244
224
  end
245
225
 
246
226
  # Declare and instantiate an single image UI Element for this page object.
@@ -256,9 +236,7 @@ module TestCentricity
256
236
  end
257
237
 
258
238
  def self.images(element_hash)
259
- element_hash.each do |element_name, locator|
260
- image(element_name, locator)
261
- end
239
+ element_hash.each(&method(:image))
262
240
  end
263
241
 
264
242
  # Declare and instantiate a single HTML5 video UI Element for this page object.
@@ -273,9 +251,7 @@ module TestCentricity
273
251
  end
274
252
 
275
253
  def self.videos(element_hash)
276
- element_hash.each do |element_name, locator|
277
- video(element_name, locator)
278
- end
254
+ element_hash.each(&method(:video))
279
255
  end
280
256
 
281
257
  # Declare and instantiate a single HTML5 audio UI Element for this page object.
@@ -290,9 +266,7 @@ module TestCentricity
290
266
  end
291
267
 
292
268
  def self.audios(element_hash)
293
- element_hash.each do |element_name, locator|
294
- audio(element_name, locator)
295
- end
269
+ element_hash.each(&method(:audio))
296
270
  end
297
271
 
298
272
  # Declare and instantiate a single File Field UI Element for this page object.
@@ -307,9 +281,7 @@ module TestCentricity
307
281
  end
308
282
 
309
283
  def self.filefields(element_hash)
310
- element_hash.each do |element_name, locator|
311
- filefield(element_name, locator)
312
- end
284
+ element_hash.each(&method(:filefield))
313
285
  end
314
286
 
315
287
  # Declare and instantiate a cell button in a table column on this page object.
@@ -568,6 +540,8 @@ module TestCentricity
568
540
  case property
569
541
  when :class
570
542
  actual = ui_object.get_attribute(:class)
543
+ when :name
544
+ actual = ui_object.get_attribute(:name)
571
545
  when :exists
572
546
  actual = ui_object.exists?
573
547
  when :enabled
@@ -158,9 +158,7 @@ module TestCentricity
158
158
  # log_out_item: 'a#logout'
159
159
  #
160
160
  def self.elements(element_hash)
161
- element_hash.each do |element_name, locator|
162
- element(element_name, locator)
163
- end
161
+ element_hash.each(&method(:element))
164
162
  end
165
163
 
166
164
  # Declare and instantiate a single button UI Element for this page section.
@@ -184,9 +182,7 @@ module TestCentricity
184
182
  # cancel_button: 'button#cancel'
185
183
  #
186
184
  def self.buttons(element_hash)
187
- element_hash.each do |element_name, locator|
188
- button(element_name, locator)
189
- end
185
+ element_hash.each(&method(:button))
190
186
  end
191
187
 
192
188
  # Declare and instantiate a single text field UI Element for this page section.
@@ -212,9 +208,7 @@ module TestCentricity
212
208
  # email_field: 'input#Email'
213
209
  #
214
210
  def self.textfields(element_hash)
215
- element_hash.each do |element_name, locator|
216
- textfield(element_name, locator)
217
- end
211
+ element_hash.each(&method(:textfield))
218
212
  end
219
213
 
220
214
  # Declare and instantiate a single checkbox UI Element for this page section.
@@ -240,9 +234,7 @@ module TestCentricity
240
234
  # carb_compliant_check: 'input#carbCompliant'
241
235
  #
242
236
  def self.checkboxes(element_hash)
243
- element_hash.each do |element_name, locator|
244
- checkbox(element_name, locator)
245
- end
237
+ element_hash.each(&method(:checkbox))
246
238
  end
247
239
 
248
240
  # Declare and instantiate a single radio button UI Element for this page section.
@@ -268,9 +260,7 @@ module TestCentricity
268
260
  # amex_radio: 'input#payWithAmEx'
269
261
  #
270
262
  def self.radios(element_hash)
271
- element_hash.each do |element_name, locator|
272
- radio(element_name, locator)
273
- end
263
+ element_hash.each(&method(:radio))
274
264
  end
275
265
 
276
266
  # Declare and instantiate a single label UI Element for this page section.
@@ -286,9 +276,7 @@ module TestCentricity
286
276
  end
287
277
 
288
278
  def self.labels(element_hash)
289
- element_hash.each do |element_name, locator|
290
- label(element_name, locator)
291
- end
279
+ element_hash.each(&method(:label))
292
280
  end
293
281
 
294
282
  # Declare and instantiate a single link UI Element for this page section.
@@ -304,9 +292,7 @@ module TestCentricity
304
292
  end
305
293
 
306
294
  def self.links(element_hash)
307
- element_hash.each do |element_name, locator|
308
- link(element_name, locator)
309
- end
295
+ element_hash.each(&method(:link))
310
296
  end
311
297
 
312
298
  # Declare and instantiate a single table UI Element for this page section.
@@ -321,9 +307,7 @@ module TestCentricity
321
307
  end
322
308
 
323
309
  def self.tables(element_hash)
324
- element_hash.each do |element_name, locator|
325
- table(element_name, locator)
326
- end
310
+ element_hash.each(&method(:table))
327
311
  end
328
312
 
329
313
  # Declare and instantiate a single select list UI Element for this page section.
@@ -339,9 +323,7 @@ module TestCentricity
339
323
  end
340
324
 
341
325
  def self.selectlists(element_hash)
342
- element_hash.each do |element_name, locator|
343
- selectlist(element_name, locator)
344
- end
326
+ element_hash.each(&method(:selectlist))
345
327
  end
346
328
 
347
329
  # Declare and instantiate a single list UI Element for this page section.
@@ -356,9 +338,7 @@ module TestCentricity
356
338
  end
357
339
 
358
340
  def self.lists(element_hash)
359
- element_hash.each do |element_name, locator|
360
- list(element_name, locator)
361
- end
341
+ element_hash.each(&method(:list))
362
342
  end
363
343
 
364
344
  # Declare and instantiate a single image UI Element for this page section.
@@ -374,9 +354,7 @@ module TestCentricity
374
354
  end
375
355
 
376
356
  def self.images(element_hash)
377
- element_hash.each do |element_name, locator|
378
- image(element_name, locator)
379
- end
357
+ element_hash.each(&method(:image))
380
358
  end
381
359
 
382
360
  # Declare and instantiate a single video UI Element for this page section.
@@ -391,9 +369,7 @@ module TestCentricity
391
369
  end
392
370
 
393
371
  def self.videos(element_hash)
394
- element_hash.each do |element_name, locator|
395
- video(element_name, locator)
396
- end
372
+ element_hash.each(&method(:video))
397
373
  end
398
374
 
399
375
  # Declare and instantiate a single HTML5 audio UI Element for this page section.
@@ -408,9 +384,7 @@ module TestCentricity
408
384
  end
409
385
 
410
386
  def self.audios(element_hash)
411
- element_hash.each do |element_name, locator|
412
- audio(element_name, locator)
413
- end
387
+ element_hash.each(&method(:audio))
414
388
  end
415
389
 
416
390
  # Declare and instantiate a single File Field UI Element for this page section.
@@ -425,9 +399,7 @@ module TestCentricity
425
399
  end
426
400
 
427
401
  def self.filefields(element_hash)
428
- element_hash.each do |element_name, locator|
429
- filefield(element_name, locator)
430
- end
402
+ element_hash.each(&method(:filefield))
431
403
  end
432
404
 
433
405
  # Declare and instantiate a cell button in a table column on this page section.
@@ -768,6 +740,8 @@ module TestCentricity
768
740
  case property
769
741
  when :class
770
742
  actual = ui_object.get_attribute(:class)
743
+ when :name
744
+ actual = ui_object.get_attribute(:name)
771
745
  when :exists
772
746
  actual = ui_object.exists?
773
747
  when :enabled
@@ -60,6 +60,9 @@ module TestCentricity
60
60
  initialize_browser_size
61
61
  end
62
62
 
63
+ # set Capybara's server port if PARALLEL_PORT is true
64
+ Capybara.server_port = 9887 + ENV['TEST_ENV_NUMBER'].to_i if ENV['PARALLEL'] && ENV['PARALLEL_PORT']
65
+
63
66
  Environ.session_state = :running
64
67
  puts "Using #{Environ.browser} browser via #{context}"
65
68
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ['lib']
29
29
  spec.requirements << 'Capybara, Selenium-WebDriver'
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 1.5'
31
+ spec.add_development_dependency 'bundler'
32
32
  spec.add_development_dependency 'rake'
33
33
 
34
34
  spec.add_runtime_dependency 'appium_lib'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5.1
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '0'
20
20
  type: :development
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: '1.5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement