Sha256: 3d2be1530c6f51cd6384c77c794653538d27203487efca52394f713c7a711323
Contents?: true
Size: 985 Bytes
Versions: 12
Compression:
Stored size: 985 Bytes
Contents
module RAutomation module Adapter module MsUia class ListBox < Control include WaitHelper include Locators def count UiaDll::select_list_count search_information end def items UiaDll::table_values(search_information).map do |list_item| @window.list_item(:value => list_item) end end def strings UiaDll::table_values(search_information) end def value UiaDll::selection search_information end def exist? super && matches_type?(Constants::UIA_LIST_CONTROL_TYPE) end alias_method :exists?, :exist? def selected?(index) item = items[index] return item && item.selected? end def select(index) UiaDll::select_list_select_index search_information, index end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems