Permalink
Browse files

add support for TableHeader, TableFooter and TableBody collections

  • Loading branch information...
1 parent bdc3673 commit 3c0f2189175e35b3ec24984344e1aed28d2d5bdb @jarmo jarmo committed Jan 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 watir/lib/watir/collections.rb
  2. +1 −1 watir/lib/watir/table.rb
@@ -45,7 +45,7 @@ class Inses < ElementCollections
def element_class; Ins; end
end
- %w[Link Li Map Area Image Table TableRow TableCell
+ %w[Link Li Map Area Image Table TableRow TableCell TableHeader TableFooter TableBody
Label Pre P Span Div Dl Dt Dd Strong Em Del
Font H1 H2 H3 H4 H5 H6 Meta Ol Ul FieldSet Option].each do |element|
module_eval %Q{
View
@@ -80,7 +80,7 @@ def to_s
def each
assert_exists
@o.rows.each do |row|
- yield TableRow.new(@container, :ole_object, row)
+ yield TableRow.new(self, :ole_object, row)
end
end

0 comments on commit 3c0f218

Please sign in to comment.