On Aug 25, 12:49 pm, JMI <[email protected]> wrote: > >> Is my modification safe? > > >No. If you'd navigate away from that page and would like to locate an > >element with the same locators on some other page then you'd fail. > > If I navigate away to another page, at least @container will not be the > same, so the method 'locate' will be called and will do the full job. So > no, I would not fail.
Oh, right. But then there's this case where you've located that DOM element and it will be removed by JavaScript or what-not and added back new DOM element with the same locators. I'm afraid that in this case you won't find that element. Not sure though. > > >There are some other approaches how to speed that up, but i'd like to > >investigate why you're getting so many method executions in the first > >place. > > You can use the HTML pages I posted at the beginning of this thread. Okay, will do that soon. > > Jurek Jarmo -- 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]
