# Get the title of the first row for the located cell cell_name = browser.td(text: "John Smith") cell_name.column_header # => "Full Name"
# Interact with a sibling cell based on the header cell_name.sibling_from_header(text: "Opted In").checkbox.click I am trying to write the similar syntax to print the table column values as given below, but I don't know how to iterate the rest of the column. For this table [image: Inline image 2] I have written this code cell_name = b.td(text: "TUTICORIN EXP") puts cell_name.column_header puts cell_name.sibling_from_header(text: 'Departure').text And it's only printing *2A 3A SL* so it's not iterating the whole column. What to do? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
