module PageObject module Elements class RadioButton < Element # # select the radiobutton # def select element.set end # # return if it is selected # def selected? element.set? end protected def self.watir_finders super + [:value, :label] end end ::PageObject::Elements.type_to_class[:radio] = ::PageObject::Elements::RadioButton end end