Class: Widgeon::Widgets::SelectList
- Includes:
- Widgeon::Widget
- Defined in:
- lib/widgeon/widgets/select_list.rb
Instance Attribute Summary
Attributes included from PageObject
Instance Method Summary collapse
- #init ⇒ Object
-
#set(option_value) ⇒ Object
TODO: why does the ‘alias_method :set, :select` code not work?.
Methods included from Widgeon::Widget
Methods included from PageObject
#fill_with, #fill_with_array_of_hashes, #fill_with_hash, #initialize, #widget, #widgets
Methods included from Tooth::PageObject
#button, #component, #element, #elements, #field, #link, #not_shows?, #shows?, #within
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tooth::PageObject
Instance Method Details
#init ⇒ Object
29 30 31 |
# File 'lib/widgeon/widgets/select_list.rb', line 29 def init ee :options, 'option' end |
#set(option_value) ⇒ Object
TODO: why does the ‘alias_method :set, :select` code not work?
34 35 36 |
# File 'lib/widgeon/widgets/select_list.rb', line 34 def set option_value self.select option_value end |