# TODO: support radiogroup # TODO: migrate this code into Watir def Watir.add_display_value_methods_to mod mod.module_eval <<-CLASS_END class TextField # includes Hidden def display_value value end end class FileField def display_value value end end class CheckBox # returns a boolean def display_value checked? end end class SelectList # Note: currently works for single-select only def display_value getSelectedItems[0] end end class Button def display_value value end end class Element def display_value text end end class NonControlElement def display_value text end end class B < NonControlElement TAG = 'B' end CLASS_END end