Skip to content

Commit

Permalink
updating Table#each to use @o.rows.length for it's upper bound. This …
Browse files Browse the repository at this point in the history
…will prevent each from crashing when there are nested tables
  • Loading branch information
abaird committed Oct 17, 2009
1 parent 55b1b7a commit 18b3e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watir/lib/watir/table.rb
Expand Up @@ -87,7 +87,7 @@ def to_s
# iterates through the rows in the table. Yields a TableRow object
def each
assert_exists
1.upto(@o.getElementsByTagName("TR").length) do |i|
1.upto(@o.rows.length) do |i|
yield TableRow.new(@container, :ole_object, _row(i))
end
end
Expand Down

0 comments on commit 18b3e3f

Please sign in to comment.