Module: Bewildr::ControlTypeAdditions::MenuItemAdditions

Defined in:
lib/bewildr/control_type_additions/menu_item_additions.rb

Instance Method Summary collapse

Instance Method Details

#clickObject

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


6
7
8
# File 'lib/bewildr/control_type_additions/menu_item_additions.rb', line 6

def sub_menus
  get(:type => :menu_item, :scope => :children, :how_many => :all)
end