Class: Widgeon::Widgets::SelectList

Inherits:
Object
  • Object
show all
Includes:
Widgeon::Widget
Defined in:
lib/widgeon/widgets/select_list.rb

Instance Attribute Summary

Attributes included from PageObject

#owner

Instance Method Summary collapse

Methods included from Widgeon::Widget

#initialize

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

#initObject



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