select_list.rb

Path: lib/mechanize/form/select_list.rb
Last Update: Tue Apr 09 07:28:03 +0000 2013

This class represents a select list or drop down box in a Form. Set the value for the list by calling SelectList#value=. SelectList contains a list of Option that were found. After finding the correct option, set the select lists value to the option value:

  selectlist.value = selectlist.options.first.value

Options can also be selected by "clicking" or selecting them. See Option

[Validate]