Sha256: df717df71b4d89d17d3d8109453ca3b9dbc165f5da07a92d8ea16987f3eb788e

Contents?: true

Size: 479 Bytes

Versions: 12

Compression:

Stored size: 479 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumWebDriver
      module CheckBox

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
page-object-0.5.3 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.5.2 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.5.1 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.5.0 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.4.4 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.4.3 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.4.2 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.4.1 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.4.0 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.3.2 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.3.1 lib/page-object/platforms/selenium_webdriver/check_box.rb
page-object-0.3.0 lib/page-object/platforms/selenium_webdriver/check_box.rb