Another complication of this is that some frame properties are not
accessible from the frame itself, but rather from its container. This is
because, internally, there is a Frame element and a Window element referred
to by the frame and contained in the Frames array. To see what i mean, look
at what i recently had to do to allow Frames to be accessed by id instead
of name -- kinda hairy.
The design principle with Watir is that we try to make Watir be intuitive,
even if that means our code isn't a simple mapping to the OLE objects.
Ultimately, i think we need to start taking a more experimental approach.
We need to be able to release an implementation and discuss it and modify
it, *before* we commit to supporting it.
Right now i am working on new dialog support code. I think everyone will
like both the new API and the new functionality that will come with it. If
so, we then face what to do with the old WinClicker and WindowHandler code,
which i would like to deprecate.
Bret
At 10:27 AM 8/3/2005, Paul Rogers wrote:
ah, good point. Should it perhaps only iterate the top level frames?
and if you wanted lower level frames, you would apply an iterator to that
frame. Seems like this way would save me work;-) But probably be less
intuiitive.
----- Original Message -----
From: Bret Pettichord <[EMAIL PROTECTED]>
Date: Wednesday, August 3, 2005 2:35 am
Subject: RE: [Wtr-general] I have a couple of questions...
> At 10:33 PM 8/2/2005, Paul Rogers wrote:
> >I want to add a frame iterator object as soon as I get the chance:
> >
> >Ie.frames.each {|f| .... }
> >
> >When that's, there, it would be simple for you to add your 'click
> a link
> >in any frame' method. It wont be this release though.
> >
> >Paul
>
> This will be harder than the other iterators because frame
> collections can
> be nested. If you only search document.frames[], you won't
> actually
> traverse all of the frames.
>
>
>
> _____________________
> Bret Pettichord
> www.pettichord.com
>
> _______________________________________________
> Wtr-general mailing list
> 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
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general