page-object 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/ChangeLog +6 -0
- data/features/element.feature +1 -0
- data/features/step_definitions/element_steps.rb +5 -0
- data/features/support/page.rb +1 -0
- data/lib/page-object/accessors.rb +1 -0
- data/lib/page-object/elements/check_box.rb +1 -2
- data/lib/page-object/elements/image.rb +1 -1
- data/lib/page-object/version.rb +1 -1
- data/lib/page-object/widgets.rb +1 -1
- data/page-object.gemspec +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c5a8da1b4a77ac97b046eb45e31f31c722f582
|
4
|
+
data.tar.gz: c8d6294e1bcef01a78de3a5e838797e1849ebb0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 183517e15ac353352f873991c8291c57f9ffb90be4675888870781c83c402ab876fcbc36258a59f84aa0689b37fff6803befd9a45d8f1837d87ddd4a65b8588b
|
7
|
+
data.tar.gz: bc21e0e935391523de3ce529cdc33c865ee7cd3b037bba146b9535c471ac4da9249a4e74f9598ecabff71029bc9781d9cf585ef76d76ed489296b015e9b849af
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.0.0-
|
1
|
+
ruby-2.0.0-p247
|
data/ChangeLog
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== Version 0.9.1 / 2013-7-16
|
2
|
+
* Enhancements
|
3
|
+
* Added css locator support for Image (Thanks Elben Shira)
|
4
|
+
* Fixes
|
5
|
+
* Corrected isse with generated method in widgets module
|
6
|
+
|
1
7
|
=== Version 0.9.0 / 2013-6-11
|
2
8
|
* Enhancements
|
3
9
|
* Added plural _elements methods for the following types:
|
data/features/element.feature
CHANGED
@@ -30,6 +30,7 @@ Feature: Elements
|
|
30
30
|
And I should know it is equal to itself
|
31
31
|
And I should know the tag name is "a"
|
32
32
|
And I should know the attribute "readonly" is false
|
33
|
+
And I should know the attribute "href" includes "success.html"
|
33
34
|
And I should be able to click it
|
34
35
|
|
35
36
|
@watir_only
|
@@ -259,3 +259,8 @@ end
|
|
259
259
|
Then(/^I should see the figure contains an image$/) do
|
260
260
|
@element.image_element.should_not be_nil
|
261
261
|
end
|
262
|
+
|
263
|
+
Then(/^I should know the attribute "(.*?)" includes "(.+)"$/) do |attribute, included|
|
264
|
+
@attr = @element.attribute(attribute)
|
265
|
+
@attr.should include included
|
266
|
+
end
|
data/features/support/page.rb
CHANGED
@@ -184,6 +184,7 @@ class Page
|
|
184
184
|
image(:image_src, :src => 'images/circle.png')
|
185
185
|
image(:image_class_index, :class => "image_class", :index => 0)
|
186
186
|
image(:image_name_index, :name => "image_name", :index => 0)
|
187
|
+
image(:image_css, :css => ".image_class")
|
187
188
|
|
188
189
|
form(:form_id, :id => 'form_id')
|
189
190
|
form(:form_name, :id => 'form_name')
|
@@ -508,6 +508,7 @@ module PageObject
|
|
508
508
|
# * :name => Watir and Selenium
|
509
509
|
# * :text => Watir and Selenium
|
510
510
|
# * :xpath => Watir and Selenium
|
511
|
+
# * :css => Selenium only
|
511
512
|
# @param optional block to be invoked when element method is called
|
512
513
|
#
|
513
514
|
def cell(name, identifier={:index => 0}, &block)
|
data/lib/page-object/version.rb
CHANGED
data/lib/page-object/widgets.rb
CHANGED
@@ -54,7 +54,7 @@ module PageObject
|
|
54
54
|
|
55
55
|
def self.define_multiple_watir_accessor(base, base_element_tag, widget_class, widget_tag)
|
56
56
|
base.send(:define_method, "#{widget_tag}s_for") do |identifier|
|
57
|
-
find_watir_elements("#{base_element_tag}(identifier)", widget_class, identifier, base_element_tag)
|
57
|
+
find_watir_elements("#{base_element_tag}s(identifier)", widget_class, identifier, base_element_tag)
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
data/page-object.gemspec
CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Jeff Morgan"]
|
10
10
|
s.email = ["jeff.morgan@leandog.com"]
|
11
|
+
s.license = 'MIT'
|
11
12
|
s.homepage = "http://github.com/cheezy/page-object"
|
12
13
|
s.summary = %q{Page Object DSL for browser testing}
|
13
14
|
s.description = %q{Page Object DSL that works with both Watir and Selenium}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: page-object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: watir-webdriver
|
@@ -371,7 +371,8 @@ files:
|
|
371
371
|
- spec/page-object/widget_spec.rb
|
372
372
|
- spec/spec_helper.rb
|
373
373
|
homepage: http://github.com/cheezy/page-object
|
374
|
-
licenses:
|
374
|
+
licenses:
|
375
|
+
- MIT
|
375
376
|
metadata: {}
|
376
377
|
post_install_message:
|
377
378
|
rdoc_options: []
|
@@ -389,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
390
|
version: '0'
|
390
391
|
requirements: []
|
391
392
|
rubyforge_project: page-object
|
392
|
-
rubygems_version: 2.0.
|
393
|
+
rubygems_version: 2.0.4
|
393
394
|
signing_key:
|
394
395
|
specification_version: 4
|
395
396
|
summary: Page Object DSL for browser testing
|