Module: Bewildr::ControlPatterns::TablePattern
- Defined in:
- lib/bewildr/control_patterns/table_pattern.rb
Instance Method Summary collapse
-
#column_header_names ⇒ Object
Returns a string array containing the column header names.
-
#column_headers ⇒ Object
Returns an array of elements containing the column headers.
Instance Method Details
#column_header_names ⇒ Object
Returns a string array containing the column header names
17 18 19 |
# File 'lib/bewildr/control_patterns/table_pattern.rb', line 17 def column_header_names column_headers.collect {|header| header.name } end |
#column_headers ⇒ Object
Returns an array of elements containing the column headers
7 8 9 10 11 12 13 14 |
# File 'lib/bewildr/control_patterns/table_pattern.rb', line 7 def column_headers #the following line seems to prompt the table pattern into giving up the column header #information that's called on the line that follows it. Weird? tell me about it... @automation_element.get_current_pattern(System::Windows::Automation::TablePattern.pattern).current.get_row_headers @automation_element.get_current_pattern(System::Windows::Automation::TablePattern.pattern).current.get_column_headers.collect do |header| Bewildr::Element.new(header) end end |