Class: WWW::Mechanize::Form::Option

Class | WWW::Mechanize::Form::Option
In: | lib/www/mechanize/form/option.rb
Parent: | Object

This class contains option 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. For example, select the first option in a list:

     select_list.first.tick

### Methods

click new select tick unselect untick

### External Aliases

value | -> | to_s
selected | -> | selected?

### Attributes

select_list | [R] |
selected | [R] |
text | [R] |
value | [R] |

### Public Class methods

new(node, select_list)

### Public Instance methods

click()

Toggle the selection value of this option

select()

Select this option

tick()

Alias for select

unselect()

Unselect this option

untick()

Alias for unselect

[Validate]