Sha256: 67e160d6c147c682df25174db4f5a3e0830634b07ae903cc21c79c0b5461d73c
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
module Watir class Radio < Input # # Selects this radio button. # def set click unless set? end alias_method :select, :set # # Is this radio set? # # @return [Boolean] # def set? element_call { @element.selected? } end alias_method :selected?, :set? end # Radio module Container def radio(*args) Radio.new(self, extract_selector(args).merge(tag_name: "input", type: "radio")) end def radios(*args) RadioCollection.new(self, extract_selector(args).merge(tag_name: "input", type: "radio" )) end end # Container class RadioCollection < InputCollection private def element_class Radio end end # RadioCollection end # Watir
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
watir-6.7.3 | lib/watir/elements/radio.rb |
watir-6.7.2 | lib/watir/elements/radio.rb |
watir-6.7.1 | lib/watir/elements/radio.rb |
watir-6.7.0 | lib/watir/elements/radio.rb |