class RAutomation::Adapter::MsUia::Menu
Attributes
window[R]
Public Class Methods
new(window, locator)
click to toggle source
# File lib/rautomation/adapter/ms_uia/menu.rb, line 8 def initialize(window, locator) @menu_items = [] << locator[:text] @window = window end
Public Instance Methods
exists?()
click to toggle source
# File lib/rautomation/adapter/ms_uia/menu.rb, line 18 def exists? UiaDll::menu_item_exists window.hwnd, *menu_items_arg end
open()
click to toggle source
# File lib/rautomation/adapter/ms_uia/menu.rb, line 22 def open error_info = FFI::MemoryPointer.new :char, 1024 UiaDll::select_menu_item window.hwnd, error_info, 1024, *menu_items_arg error = error_info.get_string 0 raise error unless error.empty? end