[Wtr-general] How to retrieve <TH> in table
Brad
forum-watir-users at openqa.org
Fri Jan 19 15:38:03 EST 2007
When I use the following following command, the array shows the first element as '[]' instead of the Header values. How do I get the Header values from the table?
my_array = $browser.table(:id , 'ctl00_MasterContentPlaceHolder_DomainGridView').to_a
p my_array
I see the following output:
[[], ["Item 1", "Local25"], ["Item 2", "Local26"], ["Item 3", "Local27"], ["", ""]]
Note the first element in the array is empty but I expected it to be the Header values.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6193&messageID=17408#17408
More information about the Wtr-general
mailing list