[Wtr-general] Is there a Frames.length command?
Bret Pettichord
bret at pettichord.com
Fri Apr 21 14:58:52 EDT 2006
I suggest you look at the code on show_frames for your answer.
Bret
On 4/20/06, Paul Carvalho <tester.paul at gmail.com> wrote:
>
> I have to write a multipurpose method that will capture certain output
> from a web page and it needs to know whether or not there are frames on the
> page.
>
> I thought there was an easy way to tell how many frames there are on a
> page, but I can't find it. That is, I tried something like:
> ie.frames.length
>
> => Which returns an error with WATIR 1.4.1.
>
> For the moment, I am fudging the frame count creatively with the following
> check:
> ie.show_frames.to_s[-2,1] == '-'
>
> => Which returns true/false to the question 'Are there 0 frames on the
> page?'. (I only need the boolean response.)
>
> Is there a command that will do what I need or is this a feature request?
>
>
> Paul.
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060421/033cf053/attachment.html
More information about the Wtr-general
mailing list