> > inetdavid (6/8/2006 9:38:31 PM): Just found a problem with row_count with > embedded tables. row_count counts *all* the rows, even rows in sub-tables, > while show_tables shows the correct count because it uses a different > method. I've first added a test to show the problem (using table_test on
> My view is that we should do the right thing. This has been a common > complaint and i don't think there is really much value in trying to retain > the old, incorrect behavior. Is anyone depending on it? I can't see the value in it either. :-) The real problem I see with the current behavior, is that table.row_count returns a number of rows not accessable via table[row][column]. If it were possible to get at the rows via table[row], I'd chalk it up to an interesting design decision, but as it is, the number returned isn't very usefull in the generic case. It may be possible to work arround/with it in specific cases, but it would be easier if row_count, and table[row] access were at least consistant. Each time I install Watir, I go and make the fix myself. It would be very nice not to have to do that. Currently I'm the only tester using my test scripts, but once others here are using them, I'd rather not have to have them edit watir.rb to get expected behavior. Thanks, -- Michael Moore ------------------------------- www.stuporglue.org -- Donate your used computer to a student that needs it. www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us. _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
