Hi,
I created a similar test (based my understanding of your post) in
TestWise, which runs fine.
The demo page (with a table) =>
http://testwisely.com/demo/table
# The test step file
Then /^I can edit the flight$/ do
puts "[1] Enter Step"
found = false
table = @browser.table(:id, "flight_list")
puts "[2] Table row count => " + table.row_count.to_s
for i in 2..table.row_count
if table.row_values(i)[1] == "New York"
found = true
puts "[3] the hyper link URL for this row is => " + table[i]
[4].link(:href, /.*/).href
# then you can do whatever to the link
end
break
end
puts "[4] Found => #{found}"
found.should == true
end
The print out
[1] Enter Step
[2] Table row count => 3
[3] the hyper link URL for this row is =>
http://testwisely.com/flights/1237/edit
[4] Found => true
Cheers,
Zhimin