Let's just use this and call it a day.
#Get actual row count when enbedded tables exists
def get_row_count_minus_enbedded_rows(table)
num_rows=0
begin
(1..table.row_count).each do |i|
num_rows = i
table[i]
end
rescue
end
return num_rows
end
On Oct 24, 11:27 am, "Nathan Lane" <
nathamberl...@gmail.com> wrote:
> The whole point is DON'T support the plethora of browsers available -- only
> the new ones that implement web standards, which is basically the law now
> for all major competitors - and if your using some niche browser then I'd
> hope you to expect problems with websites. Here are a couple of my
> references (not for the weak of heart ;))
http://veerle.duoh.com/blog/comments/starting_with_css_and_bug_fixing...http://veerle.duoh.com/blog/comments/does_flash_irks_me/http://alistapart.com/articles/tohell/
> > On Fri, Oct 24, 2008 at 11:42 AM, Nathan Lane <
nathamberl...@gmail.com>wrote:
>
> >> This is the XHTML document:
> >>
http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html
> >> And attached are my two tests. "InvalidMarkup..." contains both the
> >> results of the W3C Validator test and a testtables.html containing inner
> >> tables, and "ValidMarkup..." contains both the results of the W3C Validator
> >> test and a testtables.html NOT containing inner tables.
>
> >> Just for reference.
>
> >> On Fri, Oct 24, 2008 at 9:18 AM, Nathan Lane <
nathamberl...@gmail.com>wrote:
>
> >>> I'm wondering whether or not this should be a defect really, because
> >>> according to this standards document about tables (
> >>>
http://www.w3.org/TR/html401/struct/tables.html) tables probably
> >>> shouldn't be contained in tables. I know that the site you're testing is
> >>> probably using tables as a means of layout, which is outdated and has always
> >>> been an incorrect use of tables. One alternative to trying to fix something
> >>> that isn't really broken is to tell your developers that using tables for
> >>> layout is invalid HTML 4/XHTML and to update it to today's web standards. I
> >>> don't really think that Watir is what's broken here, rather it is the web
> >>> site that is using a broken method. I may be wrong about the site your
> >>> testing using tables for layout, but if it is using tables for layout, then
> >>> that's invalid HTML according to W3C.
> >>> Just some thoughts.
>
> >>> Nathan
>
> Blog,
http://nathandelane.blogspot.com- Hide quoted text -