[Wtr-general] Is there a Frames.length command?
Paul Carvalho
tester.paul at gmail.com
Thu Apr 20 17:13:10 EDT 2006
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060420/2fc4b594/attachment.html
More information about the Wtr-general
mailing list