Watir::Table#to_a doesn't return TH elements and inner tables. Also
Watir::TableRow#to_a is missing
---------------------------------------------------------------------------------------------------
Key: WTR-445
URL: http://jira.openqa.org/browse/WTR-445
Project: Watir
Issue Type: Bug
Components: Table
Affects Versions: 1.6.5
Environment: All environments.
Reporter: Jarmo Pertman
Currently, Watir::Table#to_a doesn't return texts from TH elements.
Also, inner tables are ignored and Watir::TableRow#to_a method doesn't exist
although it would be logical to exist.
I've made a solution where Table#to_a uses recursively TableRow#to_a method,
thus keeping code DRY. Also optional parameter *max_depth* got introduced for
#to_a, which is by default 1, thus inner tables are not returned by #to_a. It
is possible to specify higher value for *max_depth* to return inner tables.
In short, this change would do the following changes:
1) TH elements' texts will be returned instead of an empty string when using
#to_a
2) Watir::TableRow will get also #to_a method
3) Multi-dimensional arrays will be returned if max_depth parameter is higher
than 1 and inner tables exist.
It is possible to get the changes and tests from
http://github.com/jarmo/watir/commit/ec63460f3e594ae5b0430c857beaccb45990ef61
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development