Class: Mohawk::Adapters::UIA::TabControl
- Includes:
- ElementLocator
- Defined in:
- lib/mohawk/adapters/uia/tab_control.rb
Instance Method Summary collapse
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
#items ⇒ Object
15 16 17 |
# File 'lib/mohawk/adapters/uia/tab_control.rb', line 15 def items all_items.map &:name end |
#selected_tab=(which) ⇒ Object
7 8 9 |
# File 'lib/mohawk/adapters/uia/tab_control.rb', line 7 def selected_tab=(which) find_element(which).select end |
#value ⇒ Object
11 12 13 |
# File 'lib/mohawk/adapters/uia/tab_control.rb', line 11 def value all_items.find(&:selected?).name end |