Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

table cell should have correct tag_name

  • Loading branch information...
commit 8238b48cfd573dc4ddce8ed70bcca8e3644dd34f 1 parent 9dcae56
Jarmo Pertman jarmo authored
2  watir/lib/watir/table.rb
View
@@ -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
1  watir/unittests/index_specifier_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.