page-object 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +22 -12
- data/ChangeLog +10 -0
- data/Gemfile +4 -2
- data/Guardfile +1 -1
- data/README.md +2 -2
- data/lib/page-object/accessors.rb +57 -35
- data/lib/page-object/elements/element.rb +26 -0
- data/lib/page-object/locator_generator.rb +46 -0
- data/lib/page-object/platforms/selenium_webdriver/element.rb +6 -6
- data/lib/page-object/platforms/selenium_webdriver/page_object.rb +14 -0
- data/lib/page-object/platforms/watir_webdriver/element.rb +0 -7
- data/lib/page-object/platforms/watir_webdriver/page_object.rb +16 -3
- data/lib/page-object/version.rb +1 -1
- data/page-object.gemspec +7 -10
- metadata +34 -375
- data/features/area.feature +0 -35
- data/features/async.feature +0 -21
- data/features/audio.feature +0 -64
- data/features/bold.feature +0 -21
- data/features/button.feature +0 -98
- data/features/canvas.feature +0 -37
- data/features/check_box.feature +0 -55
- data/features/div.feature +0 -45
- data/features/element.feature +0 -343
- data/features/file_field.feature +0 -40
- data/features/form.feature +0 -43
- data/features/frames.feature +0 -75
- data/features/generic_elements.feature +0 -29
- data/features/gxt_table_extension.feature +0 -23
- data/features/headings.feature +0 -97
- data/features/hidden_field.feature +0 -45
- data/features/html/04-Death_Becomes_Fur.mp4 +0 -0
- data/features/html/04-Death_Becomes_Fur.oga +0 -0
- data/features/html/async.html +0 -36
- data/features/html/double_click.html +0 -13
- data/features/html/failure.html +0 -8
- data/features/html/frame_1.html +0 -18
- data/features/html/frame_2.html +0 -16
- data/features/html/frame_3.html +0 -14
- data/features/html/frames.html +0 -12
- data/features/html/hover.html +0 -12
- data/features/html/iframes.html +0 -12
- data/features/html/images/circle.png +0 -0
- data/features/html/images/img_pulpit.jpg +0 -0
- data/features/html/images/submit.gif +0 -0
- data/features/html/indexed_property.html +0 -55
- data/features/html/modal.html +0 -17
- data/features/html/modal_1.html +0 -38
- data/features/html/modal_2.html +0 -27
- data/features/html/movie.mp4 +0 -0
- data/features/html/movie.ogg +0 -0
- data/features/html/multi_elements.html +0 -145
- data/features/html/nested_elements.html +0 -77
- data/features/html/nested_frame_1.html +0 -1
- data/features/html/nested_frame_2.html +0 -11
- data/features/html/nested_frame_3.html +0 -14
- data/features/html/nested_frames.html +0 -10
- data/features/html/planets.gif +0 -0
- data/features/html/static_elements.html +0 -194
- data/features/html/success.html +0 -8
- data/features/html/sun.gif +0 -0
- data/features/html/sun.html +0 -7
- data/features/html/widgets.html +0 -20
- data/features/image.feature +0 -50
- data/features/indexed_property.feature +0 -117
- data/features/italic.feature +0 -21
- data/features/javascript.feature +0 -28
- data/features/label.feature +0 -46
- data/features/link.feature +0 -52
- data/features/list_item.feature +0 -36
- data/features/modal_dialog.feature +0 -15
- data/features/multi_elements.feature +0 -498
- data/features/nested_elements.feature +0 -117
- data/features/ordered_list.feature +0 -56
- data/features/page_level_actions.feature +0 -90
- data/features/paragraph.feature +0 -35
- data/features/radio_button.feature +0 -58
- data/features/radio_button_group.feature +0 -29
- data/features/sample-app/public/audio_video.html +0 -23
- data/features/sample-app/public/jquery-1.3.2.js +0 -4376
- data/features/sample-app/public/jquery.html +0 -30
- data/features/sample-app/public/prototype-1.6.0.3.js +0 -4320
- data/features/sample-app/public/prototype.html +0 -35
- data/features/sample-app/sample_app.rb +0 -35
- data/features/section.feature +0 -136
- data/features/select_list.feature +0 -86
- data/features/span.feature +0 -37
- data/features/step_definitions/accessor_steps.rb +0 -64
- data/features/step_definitions/area_steps.rb +0 -19
- data/features/step_definitions/async_steps.rb +0 -83
- data/features/step_definitions/audio_steps.rb +0 -27
- data/features/step_definitions/bold_steps.rb +0 -12
- data/features/step_definitions/button_steps.rb +0 -48
- data/features/step_definitions/canvas_steps.rb +0 -15
- data/features/step_definitions/check_box_steps.rb +0 -35
- data/features/step_definitions/div_steps.rb +0 -19
- data/features/step_definitions/element_steps.rb +0 -294
- data/features/step_definitions/file_field_steps.rb +0 -19
- data/features/step_definitions/form_steps.rb +0 -19
- data/features/step_definitions/frames_steps.rb +0 -159
- data/features/step_definitions/generic_element_steps.rb +0 -31
- data/features/step_definitions/gxt_table_steps.rb +0 -53
- data/features/step_definitions/headings_steps.rb +0 -12
- data/features/step_definitions/hidden_field_steps.rb +0 -27
- data/features/step_definitions/image_steps.rb +0 -27
- data/features/step_definitions/indexed_property_steps.rb +0 -163
- data/features/step_definitions/italic_steps.rb +0 -12
- data/features/step_definitions/javascript_steps.rb +0 -53
- data/features/step_definitions/label_steps.rb +0 -19
- data/features/step_definitions/link_steps.rb +0 -40
- data/features/step_definitions/list_item_steps.rb +0 -19
- data/features/step_definitions/modal_dialog_steps.rb +0 -62
- data/features/step_definitions/multi_elements_steps.rb +0 -554
- data/features/step_definitions/nested_elements_steps.rb +0 -212
- data/features/step_definitions/ordered_list_steps.rb +0 -23
- data/features/step_definitions/page_level_actions_steps.rb +0 -135
- data/features/step_definitions/page_traversal_steps.rb +0 -8
- data/features/step_definitions/paragraph_steps.rb +0 -28
- data/features/step_definitions/radio_button_group_steps.rb +0 -36
- data/features/step_definitions/radio_button_steps.rb +0 -27
- data/features/step_definitions/section_steps.rb +0 -277
- data/features/step_definitions/select_list_steps.rb +0 -65
- data/features/step_definitions/span_steps.rb +0 -19
- data/features/step_definitions/table_cell_steps.rb +0 -15
- data/features/step_definitions/table_row_steps.rb +0 -23
- data/features/step_definitions/table_steps.rb +0 -70
- data/features/step_definitions/text_area_steps.rb +0 -35
- data/features/step_definitions/text_field_steps.rb +0 -35
- data/features/step_definitions/unordered_list_steps.rb +0 -23
- data/features/step_definitions/video_steps.rb +0 -45
- data/features/support/ajax_text_environment.rb +0 -26
- data/features/support/audio_video_page.rb +0 -24
- data/features/support/env.rb +0 -8
- data/features/support/hooks.rb +0 -8
- data/features/support/page.rb +0 -373
- data/features/support/persistent_browser.rb +0 -70
- data/features/support/targets/firefox14_osx.rb +0 -6
- data/features/support/targets/firefox14_windows7.rb +0 -6
- data/features/support/url_helper.rb +0 -61
- data/features/table.feature +0 -122
- data/features/table_cell.feature +0 -45
- data/features/table_row.feature +0 -43
- data/features/text_area.feature +0 -51
- data/features/text_field.feature +0 -70
- data/features/unordered_list.feature +0 -56
- data/features/video.feature +0 -69
- data/spec/page-object/accessors_spec.rb +0 -40
- data/spec/page-object/element_locators_spec.rb +0 -1144
- data/spec/page-object/elements/area_spec.rb +0 -45
- data/spec/page-object/elements/bold_spec.rb +0 -29
- data/spec/page-object/elements/button_spec.rb +0 -64
- data/spec/page-object/elements/canvas_spec.rb +0 -41
- data/spec/page-object/elements/check_box_spec.rb +0 -49
- data/spec/page-object/elements/div_spec.rb +0 -28
- data/spec/page-object/elements/element_spec.rb +0 -196
- data/spec/page-object/elements/file_field_spec.rb +0 -39
- data/spec/page-object/elements/form_spec.rb +0 -28
- data/spec/page-object/elements/heading_spec.rb +0 -48
- data/spec/page-object/elements/hidden_field_spec.rb +0 -28
- data/spec/page-object/elements/image_spec.rb +0 -66
- data/spec/page-object/elements/italic_spec.rb +0 -29
- data/spec/page-object/elements/label_spec.rb +0 -29
- data/spec/page-object/elements/link_spec.rb +0 -49
- data/spec/page-object/elements/list_item_spec.rb +0 -29
- data/spec/page-object/elements/media_spec.rb +0 -63
- data/spec/page-object/elements/nested_element_spec.rb +0 -254
- data/spec/page-object/elements/option_spec.rb +0 -11
- data/spec/page-object/elements/ordered_list_spec.rb +0 -78
- data/spec/page-object/elements/paragraph_spec.rb +0 -27
- data/spec/page-object/elements/select_list_spec.rb +0 -142
- data/spec/page-object/elements/selenium/radio_button_spec.rb +0 -44
- data/spec/page-object/elements/selenium/text_field_spec.rb +0 -49
- data/spec/page-object/elements/selenium_element_spec.rb +0 -218
- data/spec/page-object/elements/span_spec.rb +0 -26
- data/spec/page-object/elements/table_cell_spec.rb +0 -21
- data/spec/page-object/elements/table_row_spec.rb +0 -70
- data/spec/page-object/elements/table_spec.rb +0 -98
- data/spec/page-object/elements/text_area_spec.rb +0 -39
- data/spec/page-object/elements/unordered_list_spec.rb +0 -77
- data/spec/page-object/elements/video_spec.rb +0 -33
- data/spec/page-object/elements/watir_element_spec.rb +0 -193
- data/spec/page-object/javascript_framework_facade_spec.rb +0 -61
- data/spec/page-object/loads_platform_spec.rb +0 -53
- data/spec/page-object/page-object_spec.rb +0 -435
- data/spec/page-object/page_factory_spec.rb +0 -238
- data/spec/page-object/page_populator_spec.rb +0 -122
- data/spec/page-object/page_section_spec.rb +0 -80
- data/spec/page-object/platforms/selenium_webdriver/selenium_page_object_spec.rb +0 -68
- data/spec/page-object/platforms/selenium_webdriver_spec.rb +0 -29
- data/spec/page-object/platforms/watir_webdriver/watir_page_object_spec.rb +0 -29
- data/spec/page-object/platforms/watir_webdriver_spec.rb +0 -9
- data/spec/page-object/selenium_accessors_spec.rb +0 -628
- data/spec/page-object/watir_accessors_spec.rb +0 -1191
- data/spec/page-object/widget_spec.rb +0 -226
- data/spec/spec_helper.rb +0 -43
@@ -31,7 +31,7 @@ module PageObject
|
|
31
31
|
the_bridge = bridge
|
32
32
|
10.times do |n|
|
33
33
|
color = (n % 2 == 0) ? 'red' : original_color
|
34
|
-
the_bridge.
|
34
|
+
the_bridge.execute_script("arguments[0].style.backgroundColor = '#{color}'", element)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -51,7 +51,7 @@ module PageObject
|
|
51
51
|
#
|
52
52
|
def html
|
53
53
|
script = "return (%s).apply(null, arguments)" % ATOMS.fetch(:getOuterHtml)
|
54
|
-
bridge.
|
54
|
+
bridge.execute_script(script, element).strip
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -119,7 +119,7 @@ module PageObject
|
|
119
119
|
def fire_event(event_name)
|
120
120
|
event_name = event_name.to_s.sub(/^on/, '').downcase
|
121
121
|
script = "return (%s).apply(null, arguments)" % ATOMS.fetch(:fireEvent)
|
122
|
-
bridge.
|
122
|
+
bridge.execute_script(script, element, event_name)
|
123
123
|
end
|
124
124
|
|
125
125
|
#
|
@@ -143,7 +143,7 @@ module PageObject
|
|
143
143
|
#
|
144
144
|
def parent
|
145
145
|
script = "return (%s).apply(null, arguments)" % ATOMS.fetch(:getParentElement)
|
146
|
-
parent = bridge.
|
146
|
+
parent = bridge.execute_script(script, element)
|
147
147
|
type = element.attribute(:type).to_s.downcase if parent.tag_name.to_sym == :input
|
148
148
|
cls = ::PageObject::Elements.element_class_for(parent.tag_name, type)
|
149
149
|
cls.new(parent, :platform => @platform.class::PLATFORM_NAME)
|
@@ -153,7 +153,7 @@ module PageObject
|
|
153
153
|
# Set the focus to the current element
|
154
154
|
#
|
155
155
|
def focus
|
156
|
-
bridge.
|
156
|
+
bridge.execute_script("return arguments[0].focus()", element)
|
157
157
|
end
|
158
158
|
|
159
159
|
#
|
@@ -162,7 +162,7 @@ module PageObject
|
|
162
162
|
def select_text(text)
|
163
163
|
Watir::Atoms.load(:selectText)
|
164
164
|
script = "return (%s).apply(null, arguments)" % ATOMS.fetch(:selectText)
|
165
|
-
bridge.
|
165
|
+
bridge.execute_script(script, element, text)
|
166
166
|
end
|
167
167
|
|
168
168
|
#
|
@@ -608,6 +608,20 @@ module PageObject
|
|
608
608
|
find_selenium_elements(identifier, Elements::TableRow, 'tr')
|
609
609
|
end
|
610
610
|
|
611
|
+
#
|
612
|
+
# platform method to retrieve load status of an image element
|
613
|
+
# See PageObject::Accessors#image
|
614
|
+
#
|
615
|
+
def image_loaded_for(identifier)
|
616
|
+
process_selenium_call(identifier, Elements::Image, 'img') do |how, what|
|
617
|
+
element = @browser.find_element(how, what)
|
618
|
+
@browser.execute_script(
|
619
|
+
'return typeof arguments[0].naturalWidth != "undefined" && arguments[0].naturalWidth > 0',
|
620
|
+
element
|
621
|
+
)
|
622
|
+
end
|
623
|
+
end
|
624
|
+
|
611
625
|
#
|
612
626
|
# platform method to retrieve an image element
|
613
627
|
# See PageObject::Accessors#image
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'watir-webdriver/extensions/alerts'
|
2
1
|
require 'page-object/elements'
|
3
2
|
require 'page-object/core_ext/string'
|
4
3
|
|
@@ -563,6 +562,14 @@ module PageObject
|
|
563
562
|
find_watir_elements("trs(identifier)", Elements::TableRow, identifier, 'tr')
|
564
563
|
end
|
565
564
|
|
565
|
+
#
|
566
|
+
# platform method to retrieve load status of an image element
|
567
|
+
# See PageObject::Accessors#image
|
568
|
+
#
|
569
|
+
def image_loaded_for(identifier)
|
570
|
+
process_watir_call("image(identifier).loaded?", Elements::Image, identifier)
|
571
|
+
end
|
572
|
+
|
566
573
|
#
|
567
574
|
# platform method to retrieve an image element
|
568
575
|
# See PageObject::Accessors#image
|
@@ -939,7 +946,9 @@ module PageObject
|
|
939
946
|
# See PageObject::Accessors#element
|
940
947
|
#
|
941
948
|
def element_for(tag, identifier)
|
942
|
-
|
949
|
+
the_call = "#{tag.to_s}(identifier)"
|
950
|
+
the_call << ".to_subtype" if tag.to_s == 'element'
|
951
|
+
find_watir_element(the_call, Elements::Element, identifier, tag.to_s)
|
943
952
|
end
|
944
953
|
|
945
954
|
#
|
@@ -947,7 +956,9 @@ module PageObject
|
|
947
956
|
# See PageObject::Accessors#element
|
948
957
|
#
|
949
958
|
def elements_for(tag, identifier)
|
950
|
-
|
959
|
+
the_call = "#{tag.to_s}s(identifier)"
|
960
|
+
the_call << ".to_subtype" if tag.to_s == 'element'
|
961
|
+
find_watir_elements(the_call, Elements::Element, identifier, tag.to_s)
|
951
962
|
end
|
952
963
|
|
953
964
|
#
|
@@ -1031,6 +1042,7 @@ module PageObject
|
|
1031
1042
|
def find_watir_elements(the_call, type, identifier, tag_name=nil)
|
1032
1043
|
identifier, frame_identifiers = parse_identifiers(identifier, type, tag_name)
|
1033
1044
|
elements = @browser.instance_eval "#{nested_frames(frame_identifiers)}#{the_call}"
|
1045
|
+
elements.map(&:to_subtype)
|
1034
1046
|
switch_to_default_content(frame_identifiers)
|
1035
1047
|
elements.map { |element| type.new(element, :platform => self.class::PLATFORM_NAME) }
|
1036
1048
|
end
|
@@ -1038,6 +1050,7 @@ module PageObject
|
|
1038
1050
|
def find_watir_element(the_call, type, identifier, tag_name=nil)
|
1039
1051
|
identifier, frame_identifiers = parse_identifiers(identifier, type, tag_name)
|
1040
1052
|
element = @browser.instance_eval "#{nested_frames(frame_identifiers)}#{the_call}"
|
1053
|
+
element = element.to_subtype if element.exists?
|
1041
1054
|
switch_to_default_content(frame_identifiers)
|
1042
1055
|
type.new(element, :platform => self.class::PLATFORM_NAME)
|
1043
1056
|
end
|
data/lib/page-object/version.rb
CHANGED
data/page-object.gemspec
CHANGED
@@ -13,21 +13,18 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.summary = %q{Page Object DSL for browser testing}
|
14
14
|
s.description = %q{Page Object DSL that works with both Watir and Selenium}
|
15
15
|
|
16
|
-
s.
|
17
|
-
|
18
|
-
s.files = `git ls-files`.split("\n")
|
19
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
16
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(pkg|spec|features|coverage)/}) }
|
21
17
|
s.require_paths = ["lib"]
|
22
18
|
|
23
|
-
s.add_dependency 'watir-webdriver', '>= 0.6.11'
|
24
|
-
s.add_dependency 'selenium-webdriver', '>= 2.
|
19
|
+
s.add_dependency 'watir-webdriver', ['>= 0.6.11', '< 0.9.9']
|
20
|
+
s.add_dependency 'selenium-webdriver', '>= 2.53.0'
|
25
21
|
s.add_dependency 'page_navigation', '>= 0.9'
|
22
|
+
s.add_dependency 'net-http-persistent', '~> 2.9.4'
|
26
23
|
|
27
|
-
s.add_development_dependency 'rspec', '
|
28
|
-
s.add_development_dependency 'cucumber', '>=
|
24
|
+
s.add_development_dependency 'rspec', '>= 3.0.0'
|
25
|
+
s.add_development_dependency 'cucumber', '>= 2.0.0'
|
29
26
|
s.add_development_dependency 'yard', '>= 0.7.2'
|
30
|
-
s.add_development_dependency 'rack', '
|
27
|
+
s.add_development_dependency 'rack', '~> 1.0'
|
31
28
|
s.add_development_dependency 'coveralls', '~> 0.8.1'
|
32
29
|
|
33
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: page-object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Morgan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: watir-webdriver
|
@@ -18,6 +18,9 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.6.11
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.9.9
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,20 +28,23 @@ dependencies:
|
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: 0.6.11
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.9
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: selenium-webdriver
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
38
|
- - ">="
|
33
39
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.
|
40
|
+
version: 2.53.0
|
35
41
|
type: :runtime
|
36
42
|
prerelease: false
|
37
43
|
version_requirements: !ruby/object:Gem::Requirement
|
38
44
|
requirements:
|
39
45
|
- - ">="
|
40
46
|
- !ruby/object:Gem::Version
|
41
|
-
version: 2.
|
47
|
+
version: 2.53.0
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
name: page_navigation
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,33 +60,47 @@ dependencies:
|
|
54
60
|
- !ruby/object:Gem::Version
|
55
61
|
version: '0.9'
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
63
|
+
name: net-http-persistent
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
66
|
- - "~>"
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
-
type: :
|
68
|
+
version: 2.9.4
|
69
|
+
type: :runtime
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
75
|
+
version: 2.9.4
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: rspec
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.0
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.0.0
|
70
90
|
- !ruby/object:Gem::Dependency
|
71
91
|
name: cucumber
|
72
92
|
requirement: !ruby/object:Gem::Requirement
|
73
93
|
requirements:
|
74
94
|
- - ">="
|
75
95
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
96
|
+
version: 2.0.0
|
77
97
|
type: :development
|
78
98
|
prerelease: false
|
79
99
|
version_requirements: !ruby/object:Gem::Requirement
|
80
100
|
requirements:
|
81
101
|
- - ">="
|
82
102
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
103
|
+
version: 2.0.0
|
84
104
|
- !ruby/object:Gem::Dependency
|
85
105
|
name: yard
|
86
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,14 +119,14 @@ dependencies:
|
|
99
119
|
name: rack
|
100
120
|
requirement: !ruby/object:Gem::Requirement
|
101
121
|
requirements:
|
102
|
-
- - "
|
122
|
+
- - "~>"
|
103
123
|
- !ruby/object:Gem::Version
|
104
124
|
version: '1.0'
|
105
125
|
type: :development
|
106
126
|
prerelease: false
|
107
127
|
version_requirements: !ruby/object:Gem::Requirement
|
108
128
|
requirements:
|
109
|
-
- - "
|
129
|
+
- - "~>"
|
110
130
|
- !ruby/object:Gem::Version
|
111
131
|
version: '1.0'
|
112
132
|
- !ruby/object:Gem::Dependency
|
@@ -144,137 +164,6 @@ files:
|
|
144
164
|
- README.md
|
145
165
|
- Rakefile
|
146
166
|
- cucumber.yml
|
147
|
-
- features/area.feature
|
148
|
-
- features/async.feature
|
149
|
-
- features/audio.feature
|
150
|
-
- features/bold.feature
|
151
|
-
- features/button.feature
|
152
|
-
- features/canvas.feature
|
153
|
-
- features/check_box.feature
|
154
|
-
- features/div.feature
|
155
|
-
- features/element.feature
|
156
|
-
- features/file_field.feature
|
157
|
-
- features/form.feature
|
158
|
-
- features/frames.feature
|
159
|
-
- features/generic_elements.feature
|
160
|
-
- features/gxt_table_extension.feature
|
161
|
-
- features/headings.feature
|
162
|
-
- features/hidden_field.feature
|
163
|
-
- features/html/04-Death_Becomes_Fur.mp4
|
164
|
-
- features/html/04-Death_Becomes_Fur.oga
|
165
|
-
- features/html/async.html
|
166
|
-
- features/html/double_click.html
|
167
|
-
- features/html/failure.html
|
168
|
-
- features/html/frame_1.html
|
169
|
-
- features/html/frame_2.html
|
170
|
-
- features/html/frame_3.html
|
171
|
-
- features/html/frames.html
|
172
|
-
- features/html/hover.html
|
173
|
-
- features/html/iframes.html
|
174
|
-
- features/html/images/circle.png
|
175
|
-
- features/html/images/img_pulpit.jpg
|
176
|
-
- features/html/images/submit.gif
|
177
|
-
- features/html/indexed_property.html
|
178
|
-
- features/html/modal.html
|
179
|
-
- features/html/modal_1.html
|
180
|
-
- features/html/modal_2.html
|
181
|
-
- features/html/movie.mp4
|
182
|
-
- features/html/movie.ogg
|
183
|
-
- features/html/multi_elements.html
|
184
|
-
- features/html/nested_elements.html
|
185
|
-
- features/html/nested_frame_1.html
|
186
|
-
- features/html/nested_frame_2.html
|
187
|
-
- features/html/nested_frame_3.html
|
188
|
-
- features/html/nested_frames.html
|
189
|
-
- features/html/planets.gif
|
190
|
-
- features/html/static_elements.html
|
191
|
-
- features/html/success.html
|
192
|
-
- features/html/sun.gif
|
193
|
-
- features/html/sun.html
|
194
|
-
- features/html/widgets.html
|
195
|
-
- features/image.feature
|
196
|
-
- features/indexed_property.feature
|
197
|
-
- features/italic.feature
|
198
|
-
- features/javascript.feature
|
199
|
-
- features/label.feature
|
200
|
-
- features/link.feature
|
201
|
-
- features/list_item.feature
|
202
|
-
- features/modal_dialog.feature
|
203
|
-
- features/multi_elements.feature
|
204
|
-
- features/nested_elements.feature
|
205
|
-
- features/ordered_list.feature
|
206
|
-
- features/page_level_actions.feature
|
207
|
-
- features/paragraph.feature
|
208
|
-
- features/radio_button.feature
|
209
|
-
- features/radio_button_group.feature
|
210
|
-
- features/sample-app/public/audio_video.html
|
211
|
-
- features/sample-app/public/jquery-1.3.2.js
|
212
|
-
- features/sample-app/public/jquery.html
|
213
|
-
- features/sample-app/public/prototype-1.6.0.3.js
|
214
|
-
- features/sample-app/public/prototype.html
|
215
|
-
- features/sample-app/sample_app.rb
|
216
|
-
- features/section.feature
|
217
|
-
- features/select_list.feature
|
218
|
-
- features/span.feature
|
219
|
-
- features/step_definitions/accessor_steps.rb
|
220
|
-
- features/step_definitions/area_steps.rb
|
221
|
-
- features/step_definitions/async_steps.rb
|
222
|
-
- features/step_definitions/audio_steps.rb
|
223
|
-
- features/step_definitions/bold_steps.rb
|
224
|
-
- features/step_definitions/button_steps.rb
|
225
|
-
- features/step_definitions/canvas_steps.rb
|
226
|
-
- features/step_definitions/check_box_steps.rb
|
227
|
-
- features/step_definitions/div_steps.rb
|
228
|
-
- features/step_definitions/element_steps.rb
|
229
|
-
- features/step_definitions/file_field_steps.rb
|
230
|
-
- features/step_definitions/form_steps.rb
|
231
|
-
- features/step_definitions/frames_steps.rb
|
232
|
-
- features/step_definitions/generic_element_steps.rb
|
233
|
-
- features/step_definitions/gxt_table_steps.rb
|
234
|
-
- features/step_definitions/headings_steps.rb
|
235
|
-
- features/step_definitions/hidden_field_steps.rb
|
236
|
-
- features/step_definitions/image_steps.rb
|
237
|
-
- features/step_definitions/indexed_property_steps.rb
|
238
|
-
- features/step_definitions/italic_steps.rb
|
239
|
-
- features/step_definitions/javascript_steps.rb
|
240
|
-
- features/step_definitions/label_steps.rb
|
241
|
-
- features/step_definitions/link_steps.rb
|
242
|
-
- features/step_definitions/list_item_steps.rb
|
243
|
-
- features/step_definitions/modal_dialog_steps.rb
|
244
|
-
- features/step_definitions/multi_elements_steps.rb
|
245
|
-
- features/step_definitions/nested_elements_steps.rb
|
246
|
-
- features/step_definitions/ordered_list_steps.rb
|
247
|
-
- features/step_definitions/page_level_actions_steps.rb
|
248
|
-
- features/step_definitions/page_traversal_steps.rb
|
249
|
-
- features/step_definitions/paragraph_steps.rb
|
250
|
-
- features/step_definitions/radio_button_group_steps.rb
|
251
|
-
- features/step_definitions/radio_button_steps.rb
|
252
|
-
- features/step_definitions/section_steps.rb
|
253
|
-
- features/step_definitions/select_list_steps.rb
|
254
|
-
- features/step_definitions/span_steps.rb
|
255
|
-
- features/step_definitions/table_cell_steps.rb
|
256
|
-
- features/step_definitions/table_row_steps.rb
|
257
|
-
- features/step_definitions/table_steps.rb
|
258
|
-
- features/step_definitions/text_area_steps.rb
|
259
|
-
- features/step_definitions/text_field_steps.rb
|
260
|
-
- features/step_definitions/unordered_list_steps.rb
|
261
|
-
- features/step_definitions/video_steps.rb
|
262
|
-
- features/support/ajax_text_environment.rb
|
263
|
-
- features/support/audio_video_page.rb
|
264
|
-
- features/support/env.rb
|
265
|
-
- features/support/hooks.rb
|
266
|
-
- features/support/page.rb
|
267
|
-
- features/support/persistent_browser.rb
|
268
|
-
- features/support/targets/firefox14_osx.rb
|
269
|
-
- features/support/targets/firefox14_windows7.rb
|
270
|
-
- features/support/url_helper.rb
|
271
|
-
- features/table.feature
|
272
|
-
- features/table_cell.feature
|
273
|
-
- features/table_row.feature
|
274
|
-
- features/text_area.feature
|
275
|
-
- features/text_field.feature
|
276
|
-
- features/unordered_list.feature
|
277
|
-
- features/video.feature
|
278
167
|
- lib/page-object.rb
|
279
168
|
- lib/page-object/accessors.rb
|
280
169
|
- lib/page-object/core_ext/string.rb
|
@@ -362,55 +251,6 @@ files:
|
|
362
251
|
- lib/page-object/widgets.rb
|
363
252
|
- page-object.gemspec
|
364
253
|
- pageobject.gems
|
365
|
-
- spec/page-object/accessors_spec.rb
|
366
|
-
- spec/page-object/element_locators_spec.rb
|
367
|
-
- spec/page-object/elements/area_spec.rb
|
368
|
-
- spec/page-object/elements/bold_spec.rb
|
369
|
-
- spec/page-object/elements/button_spec.rb
|
370
|
-
- spec/page-object/elements/canvas_spec.rb
|
371
|
-
- spec/page-object/elements/check_box_spec.rb
|
372
|
-
- spec/page-object/elements/div_spec.rb
|
373
|
-
- spec/page-object/elements/element_spec.rb
|
374
|
-
- spec/page-object/elements/file_field_spec.rb
|
375
|
-
- spec/page-object/elements/form_spec.rb
|
376
|
-
- spec/page-object/elements/heading_spec.rb
|
377
|
-
- spec/page-object/elements/hidden_field_spec.rb
|
378
|
-
- spec/page-object/elements/image_spec.rb
|
379
|
-
- spec/page-object/elements/italic_spec.rb
|
380
|
-
- spec/page-object/elements/label_spec.rb
|
381
|
-
- spec/page-object/elements/link_spec.rb
|
382
|
-
- spec/page-object/elements/list_item_spec.rb
|
383
|
-
- spec/page-object/elements/media_spec.rb
|
384
|
-
- spec/page-object/elements/nested_element_spec.rb
|
385
|
-
- spec/page-object/elements/option_spec.rb
|
386
|
-
- spec/page-object/elements/ordered_list_spec.rb
|
387
|
-
- spec/page-object/elements/paragraph_spec.rb
|
388
|
-
- spec/page-object/elements/select_list_spec.rb
|
389
|
-
- spec/page-object/elements/selenium/radio_button_spec.rb
|
390
|
-
- spec/page-object/elements/selenium/text_field_spec.rb
|
391
|
-
- spec/page-object/elements/selenium_element_spec.rb
|
392
|
-
- spec/page-object/elements/span_spec.rb
|
393
|
-
- spec/page-object/elements/table_cell_spec.rb
|
394
|
-
- spec/page-object/elements/table_row_spec.rb
|
395
|
-
- spec/page-object/elements/table_spec.rb
|
396
|
-
- spec/page-object/elements/text_area_spec.rb
|
397
|
-
- spec/page-object/elements/unordered_list_spec.rb
|
398
|
-
- spec/page-object/elements/video_spec.rb
|
399
|
-
- spec/page-object/elements/watir_element_spec.rb
|
400
|
-
- spec/page-object/javascript_framework_facade_spec.rb
|
401
|
-
- spec/page-object/loads_platform_spec.rb
|
402
|
-
- spec/page-object/page-object_spec.rb
|
403
|
-
- spec/page-object/page_factory_spec.rb
|
404
|
-
- spec/page-object/page_populator_spec.rb
|
405
|
-
- spec/page-object/page_section_spec.rb
|
406
|
-
- spec/page-object/platforms/selenium_webdriver/selenium_page_object_spec.rb
|
407
|
-
- spec/page-object/platforms/selenium_webdriver_spec.rb
|
408
|
-
- spec/page-object/platforms/watir_webdriver/watir_page_object_spec.rb
|
409
|
-
- spec/page-object/platforms/watir_webdriver_spec.rb
|
410
|
-
- spec/page-object/selenium_accessors_spec.rb
|
411
|
-
- spec/page-object/watir_accessors_spec.rb
|
412
|
-
- spec/page-object/widget_spec.rb
|
413
|
-
- spec/spec_helper.rb
|
414
254
|
homepage: http://github.com/cheezy/page-object
|
415
255
|
licenses:
|
416
256
|
- MIT
|
@@ -430,190 +270,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
270
|
- !ruby/object:Gem::Version
|
431
271
|
version: '0'
|
432
272
|
requirements: []
|
433
|
-
rubyforge_project:
|
273
|
+
rubyforge_project:
|
434
274
|
rubygems_version: 2.5.1
|
435
275
|
signing_key:
|
436
276
|
specification_version: 4
|
437
277
|
summary: Page Object DSL for browser testing
|
438
|
-
test_files:
|
439
|
-
- features/area.feature
|
440
|
-
- features/async.feature
|
441
|
-
- features/audio.feature
|
442
|
-
- features/bold.feature
|
443
|
-
- features/button.feature
|
444
|
-
- features/canvas.feature
|
445
|
-
- features/check_box.feature
|
446
|
-
- features/div.feature
|
447
|
-
- features/element.feature
|
448
|
-
- features/file_field.feature
|
449
|
-
- features/form.feature
|
450
|
-
- features/frames.feature
|
451
|
-
- features/generic_elements.feature
|
452
|
-
- features/gxt_table_extension.feature
|
453
|
-
- features/headings.feature
|
454
|
-
- features/hidden_field.feature
|
455
|
-
- features/html/04-Death_Becomes_Fur.mp4
|
456
|
-
- features/html/04-Death_Becomes_Fur.oga
|
457
|
-
- features/html/async.html
|
458
|
-
- features/html/double_click.html
|
459
|
-
- features/html/failure.html
|
460
|
-
- features/html/frame_1.html
|
461
|
-
- features/html/frame_2.html
|
462
|
-
- features/html/frame_3.html
|
463
|
-
- features/html/frames.html
|
464
|
-
- features/html/hover.html
|
465
|
-
- features/html/iframes.html
|
466
|
-
- features/html/images/circle.png
|
467
|
-
- features/html/images/img_pulpit.jpg
|
468
|
-
- features/html/images/submit.gif
|
469
|
-
- features/html/indexed_property.html
|
470
|
-
- features/html/modal.html
|
471
|
-
- features/html/modal_1.html
|
472
|
-
- features/html/modal_2.html
|
473
|
-
- features/html/movie.mp4
|
474
|
-
- features/html/movie.ogg
|
475
|
-
- features/html/multi_elements.html
|
476
|
-
- features/html/nested_elements.html
|
477
|
-
- features/html/nested_frame_1.html
|
478
|
-
- features/html/nested_frame_2.html
|
479
|
-
- features/html/nested_frame_3.html
|
480
|
-
- features/html/nested_frames.html
|
481
|
-
- features/html/planets.gif
|
482
|
-
- features/html/static_elements.html
|
483
|
-
- features/html/success.html
|
484
|
-
- features/html/sun.gif
|
485
|
-
- features/html/sun.html
|
486
|
-
- features/html/widgets.html
|
487
|
-
- features/image.feature
|
488
|
-
- features/indexed_property.feature
|
489
|
-
- features/italic.feature
|
490
|
-
- features/javascript.feature
|
491
|
-
- features/label.feature
|
492
|
-
- features/link.feature
|
493
|
-
- features/list_item.feature
|
494
|
-
- features/modal_dialog.feature
|
495
|
-
- features/multi_elements.feature
|
496
|
-
- features/nested_elements.feature
|
497
|
-
- features/ordered_list.feature
|
498
|
-
- features/page_level_actions.feature
|
499
|
-
- features/paragraph.feature
|
500
|
-
- features/radio_button.feature
|
501
|
-
- features/radio_button_group.feature
|
502
|
-
- features/sample-app/public/audio_video.html
|
503
|
-
- features/sample-app/public/jquery-1.3.2.js
|
504
|
-
- features/sample-app/public/jquery.html
|
505
|
-
- features/sample-app/public/prototype-1.6.0.3.js
|
506
|
-
- features/sample-app/public/prototype.html
|
507
|
-
- features/sample-app/sample_app.rb
|
508
|
-
- features/section.feature
|
509
|
-
- features/select_list.feature
|
510
|
-
- features/span.feature
|
511
|
-
- features/step_definitions/accessor_steps.rb
|
512
|
-
- features/step_definitions/area_steps.rb
|
513
|
-
- features/step_definitions/async_steps.rb
|
514
|
-
- features/step_definitions/audio_steps.rb
|
515
|
-
- features/step_definitions/bold_steps.rb
|
516
|
-
- features/step_definitions/button_steps.rb
|
517
|
-
- features/step_definitions/canvas_steps.rb
|
518
|
-
- features/step_definitions/check_box_steps.rb
|
519
|
-
- features/step_definitions/div_steps.rb
|
520
|
-
- features/step_definitions/element_steps.rb
|
521
|
-
- features/step_definitions/file_field_steps.rb
|
522
|
-
- features/step_definitions/form_steps.rb
|
523
|
-
- features/step_definitions/frames_steps.rb
|
524
|
-
- features/step_definitions/generic_element_steps.rb
|
525
|
-
- features/step_definitions/gxt_table_steps.rb
|
526
|
-
- features/step_definitions/headings_steps.rb
|
527
|
-
- features/step_definitions/hidden_field_steps.rb
|
528
|
-
- features/step_definitions/image_steps.rb
|
529
|
-
- features/step_definitions/indexed_property_steps.rb
|
530
|
-
- features/step_definitions/italic_steps.rb
|
531
|
-
- features/step_definitions/javascript_steps.rb
|
532
|
-
- features/step_definitions/label_steps.rb
|
533
|
-
- features/step_definitions/link_steps.rb
|
534
|
-
- features/step_definitions/list_item_steps.rb
|
535
|
-
- features/step_definitions/modal_dialog_steps.rb
|
536
|
-
- features/step_definitions/multi_elements_steps.rb
|
537
|
-
- features/step_definitions/nested_elements_steps.rb
|
538
|
-
- features/step_definitions/ordered_list_steps.rb
|
539
|
-
- features/step_definitions/page_level_actions_steps.rb
|
540
|
-
- features/step_definitions/page_traversal_steps.rb
|
541
|
-
- features/step_definitions/paragraph_steps.rb
|
542
|
-
- features/step_definitions/radio_button_group_steps.rb
|
543
|
-
- features/step_definitions/radio_button_steps.rb
|
544
|
-
- features/step_definitions/section_steps.rb
|
545
|
-
- features/step_definitions/select_list_steps.rb
|
546
|
-
- features/step_definitions/span_steps.rb
|
547
|
-
- features/step_definitions/table_cell_steps.rb
|
548
|
-
- features/step_definitions/table_row_steps.rb
|
549
|
-
- features/step_definitions/table_steps.rb
|
550
|
-
- features/step_definitions/text_area_steps.rb
|
551
|
-
- features/step_definitions/text_field_steps.rb
|
552
|
-
- features/step_definitions/unordered_list_steps.rb
|
553
|
-
- features/step_definitions/video_steps.rb
|
554
|
-
- features/support/ajax_text_environment.rb
|
555
|
-
- features/support/audio_video_page.rb
|
556
|
-
- features/support/env.rb
|
557
|
-
- features/support/hooks.rb
|
558
|
-
- features/support/page.rb
|
559
|
-
- features/support/persistent_browser.rb
|
560
|
-
- features/support/targets/firefox14_osx.rb
|
561
|
-
- features/support/targets/firefox14_windows7.rb
|
562
|
-
- features/support/url_helper.rb
|
563
|
-
- features/table.feature
|
564
|
-
- features/table_cell.feature
|
565
|
-
- features/table_row.feature
|
566
|
-
- features/text_area.feature
|
567
|
-
- features/text_field.feature
|
568
|
-
- features/unordered_list.feature
|
569
|
-
- features/video.feature
|
570
|
-
- spec/page-object/accessors_spec.rb
|
571
|
-
- spec/page-object/element_locators_spec.rb
|
572
|
-
- spec/page-object/elements/area_spec.rb
|
573
|
-
- spec/page-object/elements/bold_spec.rb
|
574
|
-
- spec/page-object/elements/button_spec.rb
|
575
|
-
- spec/page-object/elements/canvas_spec.rb
|
576
|
-
- spec/page-object/elements/check_box_spec.rb
|
577
|
-
- spec/page-object/elements/div_spec.rb
|
578
|
-
- spec/page-object/elements/element_spec.rb
|
579
|
-
- spec/page-object/elements/file_field_spec.rb
|
580
|
-
- spec/page-object/elements/form_spec.rb
|
581
|
-
- spec/page-object/elements/heading_spec.rb
|
582
|
-
- spec/page-object/elements/hidden_field_spec.rb
|
583
|
-
- spec/page-object/elements/image_spec.rb
|
584
|
-
- spec/page-object/elements/italic_spec.rb
|
585
|
-
- spec/page-object/elements/label_spec.rb
|
586
|
-
- spec/page-object/elements/link_spec.rb
|
587
|
-
- spec/page-object/elements/list_item_spec.rb
|
588
|
-
- spec/page-object/elements/media_spec.rb
|
589
|
-
- spec/page-object/elements/nested_element_spec.rb
|
590
|
-
- spec/page-object/elements/option_spec.rb
|
591
|
-
- spec/page-object/elements/ordered_list_spec.rb
|
592
|
-
- spec/page-object/elements/paragraph_spec.rb
|
593
|
-
- spec/page-object/elements/select_list_spec.rb
|
594
|
-
- spec/page-object/elements/selenium/radio_button_spec.rb
|
595
|
-
- spec/page-object/elements/selenium/text_field_spec.rb
|
596
|
-
- spec/page-object/elements/selenium_element_spec.rb
|
597
|
-
- spec/page-object/elements/span_spec.rb
|
598
|
-
- spec/page-object/elements/table_cell_spec.rb
|
599
|
-
- spec/page-object/elements/table_row_spec.rb
|
600
|
-
- spec/page-object/elements/table_spec.rb
|
601
|
-
- spec/page-object/elements/text_area_spec.rb
|
602
|
-
- spec/page-object/elements/unordered_list_spec.rb
|
603
|
-
- spec/page-object/elements/video_spec.rb
|
604
|
-
- spec/page-object/elements/watir_element_spec.rb
|
605
|
-
- spec/page-object/javascript_framework_facade_spec.rb
|
606
|
-
- spec/page-object/loads_platform_spec.rb
|
607
|
-
- spec/page-object/page-object_spec.rb
|
608
|
-
- spec/page-object/page_factory_spec.rb
|
609
|
-
- spec/page-object/page_populator_spec.rb
|
610
|
-
- spec/page-object/page_section_spec.rb
|
611
|
-
- spec/page-object/platforms/selenium_webdriver/selenium_page_object_spec.rb
|
612
|
-
- spec/page-object/platforms/selenium_webdriver_spec.rb
|
613
|
-
- spec/page-object/platforms/watir_webdriver/watir_page_object_spec.rb
|
614
|
-
- spec/page-object/platforms/watir_webdriver_spec.rb
|
615
|
-
- spec/page-object/selenium_accessors_spec.rb
|
616
|
-
- spec/page-object/watir_accessors_spec.rb
|
617
|
-
- spec/page-object/widget_spec.rb
|
618
|
-
- spec/spec_helper.rb
|
619
|
-
has_rdoc:
|
278
|
+
test_files: []
|