Class: RAutomation::Adapter::MsUia::SelectList
Defined Under Namespace
Classes: SelectListOption
Instance Method Summary
collapse
Methods inherited from Control
#assert_enabled, #bounding_rectangle, #cached_hwnd, #click, #collapse, #control_class, #control_name, #disabled?, #enabled?, #expand, #focus, #focused?, #get_current_control_type, #help_text, #hwnd, #initialize, #matches_type?, #new_pid, #search_information, #visible?
Instance Method Details
#clear(locator = {})
53
54
55
|
# File 'lib/rautomation/adapter/ms_uia/select_list.rb', line 53
def clear(locator = {})
options(locator).each(&:clear)
end
|
#exist? ⇒ Boolean
Also known as:
exists?
#option(locator)
41
42
43
|
# File 'lib/rautomation/adapter/ms_uia/select_list.rb', line 41
def option(locator)
options(locator).first
end
|
#options(locator = {})
45
46
47
|
# 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 = {})
49
50
51
|
# File 'lib/rautomation/adapter/ms_uia/select_list.rb', line 49
def select(locator = {})
options(locator).each(&:select)
end
|
#value
57
58
59
|
# File 'lib/rautomation/adapter/ms_uia/select_list.rb', line 57
def value
UiaDll::selection(search_information)
end
|
#values
61
62
63
|
# File 'lib/rautomation/adapter/ms_uia/select_list.rb', line 61
def values
UiaDll::selections(search_information)
end
|