Module: Bewildr::ControlTypeAdditions::MenuItemAdditions
- Defined in:
- lib/bewildr/control_type_additions/menu_item_additions.rb
Instance Method Summary collapse
-
#click ⇒ Object
menu items like ‘invoke’, not a proper mouse click.
- #sub_menus ⇒ Object
Instance Method Details
#click ⇒ Object
menu items like ‘invoke’, not a proper mouse click
11 12 13 |
# File 'lib/bewildr/control_type_additions/menu_item_additions.rb', line 11 def click @automation_element.get_current_pattern(System::Windows::Automation::InvokePattern.pattern).invoke end |
#sub_menus ⇒ Object
6 7 8 |
# File 'lib/bewildr/control_type_additions/menu_item_additions.rb', line 6 def get(:type => :menu_item, :scope => :children, :how_many => :all) end |