lib/watir/elements/table_cell.rb in watir-6.7.1 vs lib/watir/elements/table_cell.rb in watir-6.7.2
- old
+ new
@@ -1,10 +1,10 @@
module Watir
class TableCell < HTMLElement
def column_header
current_row = parent(tag_name: 'tr')
- header_row(current_row, index: previous_siblings.size)
+ header_row(current_row, index: previous_siblings.size).text
end
def sibling_from_header(opt)
current_row = parent(tag_name: 'tr')
header = header_row(current_row, opt)