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

Public Instance methods

Toggle the selection value of this option

Select this option

tick()

Alias for select

Unselect this option

untick()

Alias for unselect

[Validate]