automation_object 0.8.1 → 0.8.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/lib/automation_object/blue_print.rb +9 -2
- data/lib/automation_object/blue_print/composite/helpers/container_helper.rb +2 -7
- data/lib/automation_object/blue_print/composite/modal.rb +0 -25
- data/lib/automation_object/blue_print/composite/screen.rb +0 -20
- data/lib/automation_object/blue_print/hash_adapter.rb +1 -1
- data/lib/automation_object/blue_print/hash_adapter/element.rb +0 -1
- data/lib/automation_object/blue_print/page_object_adapter.rb +55 -0
- data/lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb +34 -0
- data/lib/automation_object/blue_print/page_object_adapter/composite.rb +93 -0
- data/lib/automation_object/blue_print/page_object_adapter/custom_method.rb +27 -0
- data/lib/automation_object/blue_print/page_object_adapter/element.rb +16 -0
- data/lib/automation_object/blue_print/page_object_adapter/element_array.rb +18 -0
- data/lib/automation_object/blue_print/page_object_adapter/element_hash.rb +25 -0
- data/lib/automation_object/blue_print/page_object_adapter/helpers/element_helper.rb +62 -0
- data/lib/automation_object/blue_print/page_object_adapter/helpers/multiple_elements_helper.rb +37 -0
- data/lib/automation_object/blue_print/page_object_adapter/hook.rb +27 -0
- data/lib/automation_object/blue_print/page_object_adapter/hook_action.rb +112 -0
- data/lib/automation_object/blue_print/page_object_adapter/hook_element_requirements.rb +56 -0
- data/lib/automation_object/blue_print/page_object_adapter/modal.rb +27 -0
- data/lib/automation_object/blue_print/page_object_adapter/screen.rb +34 -0
- data/lib/automation_object/blue_print/page_object_adapter/top.rb +52 -0
- data/lib/automation_object/dsl/_error.rb +0 -27
- data/lib/automation_object/dsl/modal.rb +2 -2
- data/lib/automation_object/dsl/screen.rb +7 -6
- data/lib/automation_object/framework.rb +1 -8
- data/lib/automation_object/helpers/composite.rb +4 -4
- data/lib/automation_object/page_object.rb +15 -0
- data/lib/automation_object/page_object/base.rb +22 -0
- data/lib/automation_object/page_object/configuration.rb +35 -0
- data/lib/automation_object/page_object/element.rb +10 -0
- data/lib/automation_object/page_object/element_array.rb +10 -0
- data/lib/automation_object/page_object/element_hash.rb +10 -0
- data/lib/automation_object/page_object/modal.rb +10 -0
- data/lib/automation_object/page_object/screen.rb +10 -0
- data/lib/automation_object/step_definitions/element.rb +24 -18
- data/lib/automation_object/step_definitions/element_array.rb +28 -21
- data/lib/automation_object/step_definitions/element_hash.rb +28 -21
- data/lib/automation_object/step_definitions/support/element_array.rb +2 -2
- data/lib/automation_object/step_definitions/support/element_hash.rb +2 -2
- data/lib/automation_object/version.rb +1 -1
- metadata +30 -7
@@ -5,8 +5,8 @@ module AutomationObject
|
|
5
5
|
module ElementArray
|
6
6
|
module_function
|
7
7
|
|
8
|
-
def iterate_and_do(screen, element, key, low_range, high_range)
|
9
|
-
element_array = AutomationObject::Framework.get.screen(screen).element_array(element)
|
8
|
+
def iterate_and_do(screen, modal, element, key, low_range, high_range)
|
9
|
+
element_array = AutomationObject::Framework.get.screen(screen).modal(modal).element_array(element)
|
10
10
|
assert element_array.is_a?(Array)
|
11
11
|
|
12
12
|
return range(element_array, low_range, high_range) if low_range && high_range
|
@@ -5,8 +5,8 @@ module AutomationObject
|
|
5
5
|
module ElementHash
|
6
6
|
module_function
|
7
7
|
|
8
|
-
def iterate_and_do(screen, element, key, low_range, high_range)
|
9
|
-
element_hash = AutomationObject::Framework.get.
|
8
|
+
def iterate_and_do(screen, modal, element, key, low_range, high_range)
|
9
|
+
element_hash = AutomationObject::Framework.get.screen(screen).modal(modal).element(element)
|
10
10
|
assert element_hash.is_a?(Hash)
|
11
11
|
|
12
12
|
return range(element_hash, low_range, high_range) if low_range && high_range
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automation_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Blatter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.10'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.10'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: awesome_print
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -373,6 +373,21 @@ files:
|
|
373
373
|
- lib/automation_object/blue_print/hash_adapter/screen.rb
|
374
374
|
- lib/automation_object/blue_print/hash_adapter/top.rb
|
375
375
|
- lib/automation_object/blue_print/hash_adapter/view.rb
|
376
|
+
- lib/automation_object/blue_print/page_object_adapter.rb
|
377
|
+
- lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb
|
378
|
+
- lib/automation_object/blue_print/page_object_adapter/composite.rb
|
379
|
+
- lib/automation_object/blue_print/page_object_adapter/custom_method.rb
|
380
|
+
- lib/automation_object/blue_print/page_object_adapter/element.rb
|
381
|
+
- lib/automation_object/blue_print/page_object_adapter/element_array.rb
|
382
|
+
- lib/automation_object/blue_print/page_object_adapter/element_hash.rb
|
383
|
+
- lib/automation_object/blue_print/page_object_adapter/helpers/element_helper.rb
|
384
|
+
- lib/automation_object/blue_print/page_object_adapter/helpers/multiple_elements_helper.rb
|
385
|
+
- lib/automation_object/blue_print/page_object_adapter/hook.rb
|
386
|
+
- lib/automation_object/blue_print/page_object_adapter/hook_action.rb
|
387
|
+
- lib/automation_object/blue_print/page_object_adapter/hook_element_requirements.rb
|
388
|
+
- lib/automation_object/blue_print/page_object_adapter/modal.rb
|
389
|
+
- lib/automation_object/blue_print/page_object_adapter/screen.rb
|
390
|
+
- lib/automation_object/blue_print/page_object_adapter/top.rb
|
376
391
|
- lib/automation_object/blue_print/yaml_adapter.rb
|
377
392
|
- lib/automation_object/driver.rb
|
378
393
|
- lib/automation_object/driver/appium_adapter/driver.rb
|
@@ -410,6 +425,14 @@ files:
|
|
410
425
|
- lib/automation_object/helpers/kernel.rb
|
411
426
|
- lib/automation_object/helpers/reflection.rb
|
412
427
|
- lib/automation_object/helpers/string.rb
|
428
|
+
- lib/automation_object/page_object.rb
|
429
|
+
- lib/automation_object/page_object/base.rb
|
430
|
+
- lib/automation_object/page_object/configuration.rb
|
431
|
+
- lib/automation_object/page_object/element.rb
|
432
|
+
- lib/automation_object/page_object/element_array.rb
|
433
|
+
- lib/automation_object/page_object/element_hash.rb
|
434
|
+
- lib/automation_object/page_object/modal.rb
|
435
|
+
- lib/automation_object/page_object/screen.rb
|
413
436
|
- lib/automation_object/proxy/mutex_proxy.rb
|
414
437
|
- lib/automation_object/proxy/proxy.rb
|
415
438
|
- lib/automation_object/proxy/throttle_proxy.rb
|
@@ -473,7 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
473
496
|
version: '0'
|
474
497
|
requirements: []
|
475
498
|
rubyforge_project:
|
476
|
-
rubygems_version: 2.
|
499
|
+
rubygems_version: 2.4.8
|
477
500
|
signing_key:
|
478
501
|
specification_version: 4
|
479
502
|
summary: YAML configuration based dynamic DSL framework for UI automation using Selenium
|