In Watir the locating of the element will be done automatically - why not use the same approach in Watir-WebDriver? Is there any good reason to do that?
It just sucks that i can't write code similar to this in watir- webdriver: container = browser.div # do something, which obsoletes the element, but makes it exist again container.do_something # this should work As i understand from your gist then #do_something won't work unless i specifically tell again that container = browser.div. Why? Jarmo On Aug 1, 4:01 pm, Jari Bakken <jari.bak...@gmail.com> wrote: > This usually happens when the element has been removed from the DOM > after the element was located, and is usually an indication that > you're not waiting for the page to be in the expected state before > using the element. Relocating the element would also solve this > problem, e.g.: > > https://gist.github.com/1118078 > > On Sun, Jul 31, 2011 at 12:58 PM, Alister Scott > > > > > > > > <alister.sc...@gmail.com> wrote: > > I'm getting the same error quite frequently when using watir-webdriver. > > It is happening near where I used execute_script to execute some javascript > > on a div, like "onclick" > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > watir-general@googlegroups.com > >http://groups.google.com/group/watir-general > > watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com