Hi,
Please find attached html and my watir code.
I could get the flash working on the link, but
when i click the link it actually deletes other entries.
Is there a better way than what I am doing?
Thanks and Regards,
Manish
On 02/17/2006 10:10 AM, Bret Pettichord wrote:
Please provide html and code.
On 2/16/06, *Manish Sapariya* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
I have a table, which has few columns with simple
text and few columns with links.
I want to do a search on text columns, and click in
the link for one of the column for a given row.
I can search the row successfully using text, but
I can't click on that row.
When I check the class of the row[i].class, it
shows as TableCell.
How do I click link object in that particular
cell.
THanks for help.
REgards,
Manish
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org <mailto:Wtr-general@rubyforge.org>
http://rubyforge.org/mailman/listinfo/wtr-general
------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Title: Saved Searches
while (true)
if($ie.frame("mainFrame").table(:id,
'nav-menu').exists? )
puts "I found the table"
end
searchExists=0
i=3
t = $ie.frame("mainFrame").table(:id, 'nav-menu')
t.each do |row|
puts "iterating #{i} row"
#puts "search Name = #{searchName}"
#puts "11th Column = #{row[11].text}"
#puts "3rd Column = #{row[3].text}"
puts "8th Column = #{row[8].text}"
if (row[8].text == "deschedule" )
puts "This is scheduled"
# i = i + 1
end
i = i + 4
if (row[3].text =~ /#{searchName}/ )
searchExist=1
puts "Search Name =
#{row[3].text}"
puts "11th Column =
#{row[11].text}"
p row[11].class
p row[11].methods
row[11].click
$ie.frame("mainFrame").link(:index, i).flash
$ie.frame("mainFrame").link(:index, i).flash
$ie.frame("mainFrame").link(:index, i).click
break;
end
end
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general