class RAutomation::Adapter::MsUia::SelectList

Public Instance Methods

clear(locator = {}) click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 53
def clear(locator = {})
  options(locator).each(&:clear)
end
exist?() click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 65
def exist?
  super && matches_type?(Constants::UIA_COMBOBOX_CONTROL_TYPE)
end
Also aliased as: exists?
exists?()
Alias for: exist?
option(locator) click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 41
def option(locator)
  options(locator).first
end
options(locator = {}) click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 45
def options(locator = {})
  all_options.select { |item| SelectListOption.locators_match? locator, item }
end
select(locator = {}) click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 49
def select(locator = {})
  options(locator).each(&:select)
end
value() click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 57
def value
  UiaDll::selection(search_information)
end
values() click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 61
def values
  UiaDll::selections(search_information)
end

Private Instance Methods

all_options() click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 76
def all_options
  UiaDll::select_options(search_information).each_with_index.map do |item, index|
    SelectListOption.new(self, item, index)
  end
end
item_count() click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 72
def item_count
  UiaDll::select_list_count(search_information)
end