his doesnt answer your question, may be relevant;-) Some time back I was using firefox/firewatir to try and figure out if a page had frames, and if it did how many etc. It proved surprisingly difficult, I think because sometimes ( I cant remember what/how/why) firefox ( or firewatir ) would give me a chrome url, presumably this was something like frame 0 or the main browser. I dont remember if this ever got resolved to my satisfaction, or if I worked round it somehow.
I would offer you my code, but firewatir has changed significantly since I did this, and probably wont help you Paul On Thu, Apr 2, 2009 at 9:25 AM, jason <[email protected]>wrote: > > Thanks - I know this..... > > The method is not helpful because it uses puts to output the frame > information. > The thing is - I don't need to see them - I want my program to > automatically review them. i.e. getting links and buttons etc. > > > > > On Apr 2, 5:19 pm, Wesley Chen <[email protected]> wrote: > > You may try: > > ff.show_frames > > > > Thanks. > > Wesley Chen. > > > > On Thu, Apr 2, 2009 at 10:44 PM, jason <[email protected] > >wrote: > > > > > > > > > I have looked and looked through the docs and I simply cannot find an > > > answer to this. > > > > > after calling > > > > > doc = firefox.goto("some_url") > > > > > I would like know what frames I have on the rendered page, i.e. > > > > > frames = doc.frames #of cource this does not work, but I would expect > > > an array of frame objects with their attributes returned. > > > > > how do I do this? > > > > > The only thing I found is doc.show_frames which is not exactly what I > > > need. > > > > > Thanks for any help on this. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
