Class: Mohawk::Adapters::UIA::MenuItem
- Defined in:
- lib/mohawk/adapters/uia/menu_item.rb
Defined Under Namespace
Classes: MenuItemNotFound
Instance Method Summary collapse
- #click ⇒ Object
- #exist? ⇒ Boolean (also: #exists?)
- #select ⇒ Object
Methods inherited from Control
#disabled?, #enabled?, #focus, #handle, #initialize, #method_missing, valid_patterns, #value, #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
#click ⇒ Object
12 13 14 |
# File 'lib/mohawk/adapters/uia/menu_item.rb', line 12 def click until_successful { element.(*path).click_center } end |
#exist? ⇒ Boolean Also known as: exists?
16 17 18 |
# File 'lib/mohawk/adapters/uia/menu_item.rb', line 16 def exist? !!element.(*path) end |
#select ⇒ Object
8 9 10 |
# File 'lib/mohawk/adapters/uia/menu_item.rb', line 8 def select until_successful { element.(*path) } end |