class RAutomation::Adapter::MsUia::Row
Attributes
search_information[R]
Public Class Methods
locators_match?(locators, item)
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 74 def self.locators_match?(locators, item) locators.all? do |locator, value| return item.value =~ value if value.is_a? Regexp return item.send(locator) == value end end
new(table, locators)
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 44 def initialize(table, locators) @table = table @search_information = table.search_information @locators = extract(locators) end
Public Instance Methods
cell(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 40 def cell(locators={}) cells(locators).first end
cells(locators={})
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 34 def cells(locators={}) Cells.new(self, locators).select do |cell| Row.locators_match? locators, cell end end
clear()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 62 def clear UiaDll::table_remove_from_selection search_information, row end
exists?()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 70 def exists? @locators[:index].between? 0, @table.row_count - 1 end
index()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 50 def index @locators[:index] || 0 end
Also aliased as: row
select()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 54 def select UiaDll::table_select search_information, row end
selected?()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 58 def selected? UiaDll::table_row_is_selected search_information, row end
value()
click to toggle source
# File lib/rautomation/adapter/ms_uia/table.rb, line 66 def value UiaDll::table_value_at search_information, @locators[:index] end
Also aliased as: text