Module: Watir::OptionAccess

Included in:
Option, OptionWrapper
Defined in:
lib/watir/input_elements.rb

Instance Method Summary collapse

Instance Method Details

#selectedObject

return true if SelectList#option is selected, else false



168
169
170
# File 'lib/watir/input_elements.rb', line 168

def selected
  @option.selected
end

#textObject

text of SelectList#option



160
161
162
# File 'lib/watir/input_elements.rb', line 160

def text
  @option.text
end

#valueObject

value of SelectList#option



164
165
166
# File 'lib/watir/input_elements.rb', line 164

def value
  @option.value
end