Class | Mechanize::Form::Option |
In: |
lib/mechanize/form/option.rb
|
Parent: | Object |
This class contains an option found within SelectList. A SelectList can have many Option classes associated with it. An option can be selected by calling Option#tick, or Option#click.
To select the first option in a list:
select_list.first.tick
value | -> | to_s |
selected | -> | selected? |
select_list | [R] | |
selected | [R] | |
text | [R] | |
value | [R] |