Sha256: 6aa07693f656c6083d25d87083b9f7b00f7788a38e9aab103b1b2bd5a6743e39

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

module PageObject
  module Elements
    class CheckBox < Element

      def initialize(element, platform)
        @element = element
        include_platform_for platform
      end

      protected

      def self.watir_finders
        super + [:value, :label]
      end

      def self.selenium_finders
        super + [:value, :label, :css]
      end

    end

    ::PageObject::Elements.type_to_class[:checkbox] = ::PageObject::Elements::CheckBox

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
page-object-2.0.0 lib/page-object/elements/check_box.rb
page-object-1.2.2 lib/page-object/elements/check_box.rb
page-object-1.2.1 lib/page-object/elements/check_box.rb
page-object-1.2.0 lib/page-object/elements/check_box.rb