Browse files

table cell should have correct tag_name

  • Loading branch information...
1 parent 9dcae56 commit 8238b48cfd573dc4ddce8ed70bcca8e3644dd34f @jarmo jarmo committed Mar 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −1 watir/lib/watir/table.rb
  2. +0 −1 watir/unittests/index_specifier_test.rb
View
2 watir/lib/watir/table.rb
@@ -40,7 +40,7 @@ def cells(how={}, what=nil)
end
def cell(how={}, what=nil)
- specifiers = format_specifiers([], how, what)
+ specifiers = format_specifiers([:th, :td], how, what)
index = specifiers.delete(:index) || 0
cells(specifiers)[index]
end
View
1 watir/unittests/index_specifier_test.rb
@@ -10,7 +10,6 @@ def setup
def test_default_index
assert "one", browser.table.row.cell.class_name
- assert "testcell", browser.table.row.cell.name
end
def test_zero_based_indexing

0 comments on commit 8238b48

Please sign in to comment.