Sha256: 4f3e87d5b0e047e8d1f702bad4349f089ae6278c26aa1bbcb7c547195c24ead4

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

module PageObject
  module Platforms
    module Selenium
      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

2 entries across 2 versions & 1 rubygems

Version Path
page-object-0.2.5 lib/page-object/platforms/selenium/check_box.rb
page-object-0.2.4 lib/page-object/platforms/selenium/check_box.rb