On 10/17/05, Mark Gargan <[EMAIL PROTECTED]> wrote: > Hi Mike, > > I think I'd a similar problem recently. > If I'm correct, the tree is created dynamically so that > all the links aren't available when you navigate to the > page the first time? > > Could you try re-attaching to IE with a new variable > after the original link is clicked? This new ie variable > could have the updated links. > > so try > ie.link(:url, /treeAction/).click > ie2 = Watir::IE.attach(:url,"<Copy and paste the exact url in IE address bar > here>" ) > ie2.show_all_objects >
You're right that the tree is created dynamically. However, as in my little diagram, there are 2 nodes initially available. I can click the first "Home Node" just fine, but I can't click the "Start Node", even though it's available on the initial page render. I think your suggestion may be what I need *after* I get the "Start Node" clicked, but right now, I can't even do that. It just doesn't seem to see it there (which is why I asked if Watir is internally doing some sort of uniq() on the links) To tell you the truth, I don't really see any reference to these objects in the show_all_objects output, with or without the attach(). _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
