Class: Mohawk::Adapters::UIA::TreeView
- Inherits:
-
SelectList
- Object
- Control
- SelectList
- Mohawk::Adapters::UIA::TreeView
- Defined in:
- lib/mohawk/adapters/uia/tree_view.rb
Instance Method Summary collapse
Methods inherited from SelectList
#clear, #options, #selected_items, #set, #values
Methods inherited from Control
#click, #disabled?, #element, #enabled?, #exist?, #focus, #handle, #initialize, #method_missing, valid_patterns, #view, #visible?
Methods included from Waiter
Constructor Details
This class inherits a constructor from Mohawk::Adapters::UIA::Control
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mohawk::Adapters::UIA::Control
Instance Method Details
#collapse(what) ⇒ Object
9 10 11 |
# File 'lib/mohawk/adapters/uia/tree_view.rb', line 9 def collapse(what) find_element(what).as(:expand_collapse).collapse end |
#expand(what) ⇒ Object
5 6 7 |
# File 'lib/mohawk/adapters/uia/tree_view.rb', line 5 def (what) find_element(what).as(:expand_collapse). end |
#value ⇒ Object
13 14 15 |
# File 'lib/mohawk/adapters/uia/tree_view.rb', line 13 def value selected_items.map(&:name).first end |