Module: Watir::OptionAccess
- Included in:
- Option, OptionWrapper
- Defined in:
- lib/watir/input_elements.rb
Instance Method Summary collapse
-
#selected ⇒ Object
return true if SelectList#option is selected, else false.
-
#text ⇒ Object
text of SelectList#option.
-
#value ⇒ Object
value of SelectList#option.
Instance Method Details
#selected ⇒ Object
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 |
#text ⇒ Object
text of SelectList#option
159 160 161 |
# File 'lib/watir/input_elements.rb', line 159 def text @option.text end |
#value ⇒ Object
value of SelectList#option
163 164 165 |
# File 'lib/watir/input_elements.rb', line 163 def value @option.value end |