class RAutomation::Adapter::MsUia::Table
Public Instance Methods
clear(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 106 def clear(locators={}) rows(locators).each(&:clear) end
exist?()
click to toggle source
Calls superclass method
RAutomation::Adapter::MsUia::Control#exist?
# File lib/rautomation/adapter/ms_uia/table.rb, line 128 def exist? super && of_type_table? end
Also aliased as: exists?
of_type_table?()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 132 def of_type_table? matches_type?(Constants::UIA_LIST_CONTROL_TYPE) || matches_type?(Constants::UIA_DATA_GRID_CONTROL_TYPE) end
row(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 92 def row(locators={}) rows(locators).first end
row_count()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 124 def row_count UiaDll::table_row_count search_information end
rows(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 96 def rows(locators={}) Rows.new(self, locators).select do |row| Row.locators_match? locators, row end end
select(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 102 def select(locators={}) rows(locators).each(&:select) end
selected_rows()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 110 def selected_rows UiaDll.table_selected_indexes(search_information).map {|index| Row.new(self, index: index) } end
strings()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 114 def strings headers = UiaDll.table_headers(search_information) values = UiaDll.table_values(search_information) return values if headers.empty? all_strings = [] << headers values.each_slice(headers.count) {|r| all_strings << r } all_strings end