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



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

def selected
  @option.selected
end

#textObject

text of SelectList#option



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

def text
  @option.text
end

#valueObject

value of SelectList#option



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

def value
  @option.value
end