Sha256: 32b87f63e195a5c49eb27fdb096d082e77de2b25b7081d9a2cff218050ee4e95

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

module PageObject
  module Elements
    class RadioButton < 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]
      end

    end

    ::PageObject::Elements.type_to_class[:radio] = ::PageObject::Elements::RadioButton
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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