class RAutomation::Adapter::MsUia::SelectList::SelectListOption
Attributes
index[RW]
text[RW]
Public Class Methods
locators_match?(locators, item)
click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 31 def self.locators_match?(locators, item) locators.all? do |locator, value| return item.text =~ value if value.is_a? Regexp return item.send(locator) == value end end
new(select_list, text, index)
click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 12 def initialize(select_list, text, index) @select_list = select_list @text = text @index = index end
Public Instance Methods
clear()
click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 27 def clear UiaDll::remove_from_selection @select_list.search_information, @index end
select()
click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 22 def select @select_list.assert_enabled UiaDll::select_list_select_index @select_list.search_information, @index end
Also aliased as: set
selected?()
click to toggle source
# File lib/rautomation/adapter/ms_uia/select_list.rb, line 18 def selected? @index == UiaDll::select_list_selected_index(@select_list.search_information) end