> 3 Another question will be igoogle. I add several protelet on my page. > I can't find those links in show_all_objects, but I can use > ie.link(:text, "How to of the Day").click to click it. > > Is Watir reading the html/view/source to generate the show_all_objects?
No. The method accesses all elements in the document object model, and in fact all the links in a page are included in its output. They're the ones that look like this: name= id= Which is obviously not very helpful. The problem is that show_all_objects prints a specific list of properties that aren't good for distinguishing links. You could try hacking the method to show more properties, or something like: ie.links.each do | link | puts "link text: #{link.text}\thref=#{link.href}" end _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general