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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e620fc1f0961903a190021d0d48cb0534a1c2542
4
- data.tar.gz: 9246d412ee8c1b8e80742c7e9fb565b895a36cc1
3
+ metadata.gz: 57c5a8da1b4a77ac97b046eb45e31f31c722f582
4
+ data.tar.gz: c8d6294e1bcef01a78de3a5e838797e1849ebb0e
5
5
  SHA512:
6
- metadata.gz: 5a47a924c8726590868fcd55f0773fe13d7ea861b4713ad97bde67cbe58db43172082ba1b4b3298d340ac3f95c1e60dec49a66cb608ae01ce935b230abd55bbf
7
- data.tar.gz: f1766a0c593a6106e93a9de36b1c676ad916d34ef281fb30a6555ce57c8336926cce311353af6b75bd410579e000fee8cfdfd7036da7eb57824932faf40aaa3a
6
+ metadata.gz: 183517e15ac353352f873991c8291c57f9ffb90be4675888870781c83c402ab876fcbc36258a59f84aa0689b37fff6803befd9a45d8f1837d87ddd4a65b8588b
7
+ data.tar.gz: bc21e0e935391523de3ce529cdc33c865ee7cd3b037bba146b9535c471ac4da9249a4e74f9598ecabff71029bc9781d9cf585ef76d76ed489296b015e9b849af
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.0.0-p0
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:
@@ -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
@@ -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)
@@ -1,4 +1,3 @@
1
-
2
1
  module PageObject
3
2
  module Elements
4
3
  class CheckBox < Element
@@ -15,7 +14,7 @@ module PageObject
15
14
  end
16
15
 
17
16
  def self.selenium_finders
18
- super + [:value, :label]
17
+ super + [:value, :label, :css]
19
18
  end
20
19
 
21
20
  def include_platform_for platform
@@ -13,7 +13,7 @@ module PageObject
13
13
  end
14
14
 
15
15
  def self.selenium_finders
16
- super + [:alt, :src]
16
+ super + [:alt, :src, :css]
17
17
  end
18
18
 
19
19
  def include_platform_for platform
@@ -1,4 +1,4 @@
1
1
  module PageObject
2
2
  # @private
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
@@ -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.0
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-06-11 00:00:00.000000000 Z
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.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