testcentricity_web 2.0.0 → 2.0.1

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: 70b7ed7b77f264766c15a9215ffafd3e62b4a00c
4
- data.tar.gz: 94ffe57156d1e9e181aaeffaa671cd3a6ac091d7
3
+ metadata.gz: 0686607dabcb90195da5b0925bf68b2d137bd0a1
4
+ data.tar.gz: 0a90b8b208c72831c558ee8d73de8ead824d0a0e
5
5
  SHA512:
6
- metadata.gz: d230d08d0df3a009df25251f056ed0746cfd68a4775a879e12c4ea0176bf667857a2ac685122bd9202a78a338e95ce5b67e0e5802e904e72bb96c96dc4b9891d
7
- data.tar.gz: fbd2c61354b850f76523b7ae5371e3b9ff182aaa6249267925b04094c66d4709aac363c95e8c847fda6329f09af44bd5a9b650bf068f3c6e5c425555427007ce
6
+ metadata.gz: db36fd533cd36b4b8d7eaa22c93285439fb6d4b404961e8311d3850447044220c364c3ac61b57d91942cf372bac1400384eb7f32cac05363e9aac00748a92dbc
7
+ data.tar.gz: 47014feed7a3787389b699a54b3e9decf57c4348449a076db9a6f1ba88677586b1409fdc05113cad0c64180717db5c0832cc49bcc003cd646d12bda0c7057e9d
data/README.md CHANGED
@@ -143,6 +143,7 @@ You define your page's **Traits** as shown below:
143
143
 
144
144
 
145
145
  class HomePage < TestCentricity::PageObject
146
+ # this page may be referred to as 'Home' or 'Dashboard' page so page_name trait is an Array of Strings
146
147
  trait(:page_name) { ['Home', 'Dashboard'] }
147
148
  trait(:page_url) { '/dashboard' }
148
149
  trait(:page_locator) { 'body.dashboard' }
@@ -393,7 +394,7 @@ tables, lists, buttons, etc. **UI Elements** are declared and instantiated withi
393
394
  Object** in which they are contained. With TestCentricity Web, all UI elements are based on the **UIElement** class.
394
395
 
395
396
 
396
- ### Declaring and instantiating UI Element
397
+ ### Declaring and Instantiating UI Element
397
398
 
398
399
  Single **UIElement** declarations have the following format:
399
400
 
@@ -405,60 +406,59 @@ Single **UIElement** declarations have the following format:
405
406
  Multiple **UIElement** declarations for a collection of elements of the same type can be performed by passing a hash table containing the
406
407
  names and locators of each individual element.
407
408
 
409
+ ### Example UI Element Declarations
410
+
408
411
  Supported **UI Element** elementTypes and their declarations have the following format:
409
412
 
410
413
  *Single element declarations:*
411
414
 
412
- button :button_name, locator
413
- textfield :field_name, locator
414
- checkbox :checkbox_name, locator
415
- radio :radio_button_name, locator
416
- label :label_name, locator
417
- link :link_name, locator
418
- selectlist :select_name, locator
419
- list :list_name, locator
420
- table :table_name, locator
421
- image :image_name, locator
422
- filefield :filefield_name, locator
415
+ class SamplePage < TestCentricity::PageObject
416
+
417
+ button :button_name, 'locator'
418
+ textfield :field_name, locator
419
+ checkbox :checkbox_name, locator
420
+ radio :radio_button_name, locator
421
+ label :label_name, locator
422
+ link :link_name, locator
423
+ selectlist :select_name, locator
424
+ list :list_name, locator
425
+ table :table_name, locator
426
+ image :image_name, locator
427
+ filefield :filefield_name, locator
428
+
429
+ end
423
430
 
424
431
  *Multiple element declarations:*
425
432
 
426
- buttons button_1_name: locator,
427
- button_2_name: locator,
428
- ...
429
- button_X_name: locator
430
- textfields field_1_name: locator,
431
- field_2_name: locator,
432
- ...
433
- field_X_name: locator
434
- checkboxes check_1_name: locator,
435
- check_2_name: locator,
436
- ...
437
- check_X_name: locator
438
- radios radio_1_name: locator,
439
- ...
440
- radio_X_name: locator
441
- labels label_1_name: locator,
442
- ...
443
- label_X_name: locator
444
- links link_1_name: locator,
445
- ...
446
- link_X_name: locator
447
- selectlists selectlist_1_name: locator,
448
- ...
449
- selectlist_X_name: locator
450
- lists list_1_name: locator,
451
- ...
452
- list_X_name: locator
453
- tables table_1_name: locator,
454
- ...
455
- table_X_name: locator
456
- images image_1_name: locator,
457
- ...
458
- image_X_name: locator
459
- filefields filefield_1_name: locator,
460
- ...
461
- filefield_X_name: locator
433
+ class SamplePage < TestCentricity::PageObject
434
+
435
+ buttons button_1_name: locator,
436
+ button_2_name: locator,
437
+ button_X_name: locator
438
+ textfields field_1_name: locator,
439
+ field_2_name: locator,
440
+ field_X_name: locator
441
+ checkboxes check_1_name: locator,
442
+ check_2_name: locator,
443
+ check_X_name: locator
444
+ radios radio_1_name: locator,
445
+ radio_X_name: locator
446
+ labels label_1_name: locator,
447
+ label_X_name: locator
448
+ links link_1_name: locator,
449
+ link_X_name: locator
450
+ selectlists selectlist_1_name: locator,
451
+ selectlist_X_name: locator
452
+ lists list_1_name: locator,
453
+ list_X_name: locator
454
+ tables table_1_name: locator,
455
+ table_X_name: locator
456
+ images image_1_name: locator,
457
+ image_X_name: locator
458
+ filefields filefield_1_name: locator,
459
+ filefield_X_name: locator
460
+
461
+ end
462
462
 
463
463
 
464
464
  Refer to the Class List documentation for the **PageObject** and **PageSection** classes for details on the class methods used for declaring
@@ -466,14 +466,13 @@ and instantiating **UI Elements**. Examples of UI element declarations can be fo
466
466
  ***Adding UI Elements to your PageSection Object*** sections above.
467
467
 
468
468
 
469
- ### UIElement inherited methods
469
+ ### UIElement Inherited Methods
470
470
 
471
471
  With TestCentricity, all UI elements are based on the **UIElement** class, and inherit the following methods:
472
472
 
473
473
  **Action methods:**
474
474
 
475
475
  element.click
476
-
477
476
  element.double_click
478
477
  element.right_click
479
478
  element.click_at(x, y)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
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: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler