Bret
On 4/20/06, Paul Carvalho <[EMAIL PROTECTED]
> 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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
