Sha256: 379aa7cee081b177307756d6fb373447bcd34b8b60f17ebceabeb68b6c4a19d3

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumWebDriver
      module CheckBox

        #
        # check the checkbox
        #
        def check
          element.click unless element.selected?
        end

        #
        # uncheck the checkbox
        #
        def uncheck
          element.click if element.selected?
        end

        #
        # return true if it is checked
        #
        def checked?
          element.selected?
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
page-object-lds-0.0.14 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-lds-0.0.13 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-lds-0.0.12 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-lds-0.0.11 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-lds-0.0.1 lib/page-object/platforms/selenium_webdriver/check_box.rb
meeane-page-object-0.1.10 lib/page-object/platforms/selenium_webdriver/check_box.rb
meeane-page-object-0.1.8 lib/page-object/platforms/selenium_webdriver/check_box.rb