Sha256: 2595f453a0f58da4c02620b4f6ba108e84d31272130f172f54781419c48c6a82

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8
module Watir
  class Radio < Input
    identifier :type => 'radio'

    container_method  :radio
    collection_method :radios

    def set
      assert_exists
      assert_enabled

      @element.click unless set?
    end

    def set?
      assert_exists
      @element.selected?
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watir-webdriver-0.0.1.dev4 lib/watir-webdriver/elements/radio.rb
watir-webdriver-0.0.1.dev3 lib/watir-webdriver/elements/radio.rb
watir-webdriver-0.0.1.dev2 lib/watir-webdriver/elements/radio.rb