page_object_wrapper 1.1.0 → 1.1.1
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.
| @@ -297,7 +297,7 @@ private | |
| 297 297 | 
             
                      if watir_element.respond_to?(:set)
         | 
| 298 298 | 
             
                        watir_element.when_present.set food
         | 
| 299 299 | 
             
                      else
         | 
| 300 | 
            -
                        raise PageObjectWrapper::UnableToFeedObject, to_tree(@@current_page,  | 
| 300 | 
            +
                        raise PageObjectWrapper::UnableToFeedObject, to_tree(@@current_page, e) + ' check element type'
         | 
| 301 301 | 
             
                      end
         | 
| 302 302 | 
             
                    end
         | 
| 303 303 | 
             
                }
         | 
    
        data/spec/feed_elements_spec.rb
    CHANGED
    
    | @@ -46,8 +46,8 @@ describe "page_object.feed_xxx" do | |
| 46 46 | 
             
                    tp.feed_test_elements(:fresh_food)
         | 
| 47 47 | 
             
                    @b.text_field(:id=>'f1').value.should eq 'some fresh food'
         | 
| 48 48 | 
             
                    @b.textarea(:id=>'f2').value.should eq 'default fresh food'
         | 
| 49 | 
            -
                    @b.select(:id=>'f10').value.should eq "one | 
| 50 | 
            -
                    @b.select(:id=>'f11').value.should eq "one | 
| 49 | 
            +
                    @b.select(:id=>'f10').value.should eq "one"
         | 
| 50 | 
            +
                    @b.select(:id=>'f11').value.should eq "one"
         | 
| 51 51 | 
             
                    @b.checkbox(:id=>'f5').should be_set
         | 
| 52 52 | 
             
                    @b.radio(:id=>'f3').should be_set
         | 
| 53 53 | 
             
                  end
         | 
| @@ -59,8 +59,8 @@ describe "page_object.feed_xxx" do | |
| 59 59 | 
             
                    tp.feed_test_elements
         | 
| 60 60 | 
             
                    @b.text_field(:id=>'f1').value.should eq 'some fresh food'
         | 
| 61 61 | 
             
                    @b.textarea(:id=>'f2').value.should eq 'default fresh food'
         | 
| 62 | 
            -
                    @b.select(:id=>'f10').value.should eq "one | 
| 63 | 
            -
                    @b.select(:id=>'f11').value.should eq "one | 
| 62 | 
            +
                    @b.select(:id=>'f10').value.should eq "one"
         | 
| 63 | 
            +
                    @b.select(:id=>'f11').value.should eq "one"
         | 
| 64 64 | 
             
                    @b.checkbox(:id=>'f5').should be_set
         | 
| 65 65 | 
             
                    @b.radio(:id=>'f3').should be_set
         | 
| 66 66 | 
             
                  end
         | 
| @@ -72,8 +72,8 @@ describe "page_object.feed_xxx" do | |
| 72 72 | 
             
                    tp.feed_test_elements(:missing_food)
         | 
| 73 73 | 
             
                    @b.text_field(:id=>'f1').value.should eq 'some missing food'
         | 
| 74 74 | 
             
                    @b.textarea(:id=>'f2').value.should eq 'default missing food'
         | 
| 75 | 
            -
                    @b.select(:id=>'f10').value.should eq "three | 
| 76 | 
            -
                    @b.select(:id=>'f11').value.should eq "two (default) | 
| 75 | 
            +
                    @b.select(:id=>'f10').value.should eq "three"
         | 
| 76 | 
            +
                    @b.select(:id=>'f11').value.should eq "two (default)"
         | 
| 77 77 | 
             
                    @b.checkbox(:id=>'f5').should be_set
         | 
| 78 78 | 
             
                    @b.radio(:id=>'f3').should be_set
         | 
| 79 79 | 
             
                  end
         | 
    
        data/spec/fire_event_spec.rb
    CHANGED
    
    | @@ -6,7 +6,10 @@ describe "page_object.fire_xxx" do | |
| 6 6 | 
             
                it "raises PageObjectWrapper::BrowserNotFound" do
         | 
| 7 7 | 
             
                  begin
         | 
| 8 8 | 
             
                    PageObjectWrapper.browser.quit if not PageObjectWrapper.browser.nil?
         | 
| 9 | 
            -
                     | 
| 9 | 
            +
                    begin
         | 
| 10 | 
            +
                      PageObjectWrapper.load('./good_pages')
         | 
| 11 | 
            +
                    rescue
         | 
| 12 | 
            +
                    end
         | 
| 10 13 | 
             
                  rescue
         | 
| 11 14 | 
             
                  end
         | 
| 12 15 | 
             
                  tp = PageObjectWrapper.receive_page(:some_test_page)
         | 
| @@ -17,7 +20,10 @@ describe "page_object.fire_xxx" do | |
| 17 20 | 
             
                before(:all){
         | 
| 18 21 | 
             
                  @b = Watir::Browser.new
         | 
| 19 22 | 
             
                  PageObjectWrapper.use_browser @b
         | 
| 23 | 
            +
                  begin
         | 
| 20 24 | 
             
                    PageObjectWrapper.load('./good_pages')
         | 
| 25 | 
            +
                  rescue
         | 
| 26 | 
            +
                  end
         | 
| 21 27 | 
             
                }
         | 
| 22 28 | 
             
                after(:all){ PageObjectWrapper.browser.close }
         | 
| 23 29 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: page_object_wrapper
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.1
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -13,7 +13,7 @@ date: 2012-12-19 00:00:00.000000000Z | |
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: watir-webdriver
         | 
| 16 | 
            -
              requirement: & | 
| 16 | 
            +
              requirement: &20716880 !ruby/object:Gem::Requirement
         | 
| 17 17 | 
             
                none: false
         | 
| 18 18 | 
             
                requirements:
         | 
| 19 19 | 
             
                - - ! '>='
         | 
| @@ -21,10 +21,10 @@ dependencies: | |
| 21 21 | 
             
                    version: '0'
         | 
| 22 22 | 
             
              type: :runtime
         | 
| 23 23 | 
             
              prerelease: false
         | 
| 24 | 
            -
              version_requirements: * | 
| 24 | 
            +
              version_requirements: *20716880
         | 
| 25 25 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 26 26 | 
             
              name: rspec
         | 
| 27 | 
            -
              requirement: & | 
| 27 | 
            +
              requirement: &20740240 !ruby/object:Gem::Requirement
         | 
| 28 28 | 
             
                none: false
         | 
| 29 29 | 
             
                requirements:
         | 
| 30 30 | 
             
                - - ! '>='
         | 
| @@ -32,7 +32,7 @@ dependencies: | |
| 32 32 | 
             
                    version: 2.0.0
         | 
| 33 33 | 
             
              type: :development
         | 
| 34 34 | 
             
              prerelease: false
         | 
| 35 | 
            -
              version_requirements: * | 
| 35 | 
            +
              version_requirements: *20740240
         | 
| 36 36 | 
             
            description: Wraps watir-webdriver with convenient testing interface, based on PageObjects
         | 
| 37 37 | 
             
              automation testing pattern. Simplifies resulting automated test understanding.
         | 
| 38 38 | 
             
            email:
         |