That's weird,  I've experimented with a few different pages that
contain frames and with some of them I get the same behaviour as you.
With others it lists the frame names as expected.

As I said, try looking at the HTML source for part that states:

   <frame name="frame_name_here"...

and use the text that you have instead of "frame_name_here" to specify
the frame as described earlier in the mail thread.

Cheers,
Daniel.

On 16/11/06, Daniel Browne <[EMAIL PROTECTED]> wrote:
> What if you look at the HTML to determine the frame name?
>
> Cheers,
> Daniel.
>
> On 16/11/06, Nie Guoqiang <[EMAIL PROTECTED]> wrote:
> > I get only "there are 6 frames" when executing ie.show_frames.
> > So I think it must be of the watir version that causes my problem.
> > I am very sorry, and thanks to you all
> >
> >
> > > 1. First of all do:
> > >
> > >         ie.show_frames
> > >
> > >    List will give you a list of frames.
> > >
> > > 2. Then for each of the frame names returned in step 1 do:
> > >
> > >         ie.frame("<the_name_of_a_frame>").show_images
> > >
> > > This will give you lists of images in each frame (you have to replace
> > > <the_name_of_a_frame> with the actual name of a frame returned in step
> > > 1.  If there are 5 frames returned in step 1, then you might have to
> > > do step 2 five times to find out which frame contains your image.
> > >
> > > 3.  Once you know the name of the frame that contains the image (let's
> > > say it is called "frame5") do:
> > >
> > >         ie.frame("frame5").image(:src, /logout/).flash
> > >
> > > Cheers,
> > > Daniel.
> > >
> > >
> > > On 15/11/06, Nie Guoqiang <[EMAIL PROTECTED]> wrote:
> > > > Thanks for your reply!
> > > >
> > > > I tyied with ie.show_frames.frame("logo").show_images , but get such 
> > > > msg as "undefined method for 0..5:Range"
> > > >
> > > > BTW: how can i access one specified frame, eg. MENU?
> > > > ie.frame("MENU") doesnot work.
> > > >
> > > > Frame codes is as below:
> > > > ++++++++++++++++++++++++++++++++++
> > > >    <frameset rows="80,*,20" cols="*" frameborder="NO" border="0" 
> > > > framespacing="0">
> > > >         <frameset rows="54,26" frameborder="NO" border="0" 
> > > > framespacing="0">
> > > >             <frame name="logo" src="/hydragui/logo.html" 
> > > > scrolling="no"/>
> > > >             <frame name="TITLE" src="/hydragui/status/middlebar.do" 
> > > > scrolling="no"/>
> > > >         </frameset>
> > > >
> > > >         <frameset cols="210,*" frameborder="NO" border="0" 
> > > > framespacing="0">
> > > >                 <frame name="MENU" 
> > > > src="/hydragui/framework/menuDisplay.do?operation=display" 
> > > > scrolling="auto"/>
> > > >             <frame name="ACTION" src="/hydragui/action.html" 
> > > > scrolling="auto" 
> > > > onload="if(TIMESTAMP){TIMESTAMP.location='/hydragui/framework/timestamp.do'}"/>
> > > >         </frameset>
> > > >         <frameset  cols="*,200" frameborder="NO" border="0" 
> > > > framespacing="0">
> > > >             <frame name="alertnotice" 
> > > > src="/hydragui/alert/AlertNoticeAction.do?operation=getAlertNotice" 
> > > > scrolling="no"/>
> > > >             <frame name="TIMESTAMP" 
> > > > src="/hydragui/framework/timestamp.do" scrolling="no"/>
> > > >         </frameset>
> > > >     </frameset>
> > > > ++++++++++++++++++++++++++++++++++
> > > >
> > > >
> > > > > Your HTML snippet didn't show that there where any frames.  Find the
> > > > > name of the frame that contains the image using e.g:
> > > > >
> > > > >    ie.show_frames.some_frame.show_images
> > > > >
> > > > > If the image is listed for frame "show_frame" (frames will have
> > > > > different names for you) then you could use:
> > > > >
> > > > >    ie.frame("some_frame").image(:src, /logout/).flash
> > > > >
> > > > > Cheers,
> > > > > Daniel.
> > > > >
> > > > >
> > > > >
> > > > > On 15/11/06, Nie Guoqiang <[EMAIL PROTECTED]> wrote:
> > > > > > The codes doesnot work :(
> > > > > >
> > > > > > More tips:
> > > > > > When I execute  ie.show_frames(), I get "There is 6 frames".
> > > > > > And when ie.show_images() is executed, message is "0".
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > > On 11/14/06, Nie Guoqiang <[EMAIL PROTECTED]> wrote:    how can i 
> > > > > > > access this icon-button.
> > > > > > >       <img src="../images/nation/btn_logout.gif" />
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi Nie,
> > > > > > >
> > > > > > > This will click logout image:
> > > > > > >
> > > > > > > ie.image(:src, /logout/).flash
> > > > > > >
> > > > > > > If this does not do what you need, let me know.
> > > > > > >
> > > > > > > 沤eljko
> > > > > > > --
> > > > > > > http://zeljkofilipin.com/
> > > > > >
> > > > > >
> > > > > >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> > > > > >    Nie Guoqiang   NEC-CAS Software Department 1K/4SG
> > > > > >
> > > > > >      Tel    : 010-82334433-356  /  8-0086-22-356
> > > > > >      Email  : [EMAIL PROTECTED]
> > > > > >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > 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
> > > >
> > > >
> > > >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> > > >    Nie Guoqiang   NEC-CAS Software Department 1K/4SG
> > > >
> > > >      Tel    : 010-82334433-356  /  8-0086-22-356
> > > >      Email  : [EMAIL PROTECTED]
> > > >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
> >
> >
> >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> >    Nie Guoqiang   NEC-CAS Software Department 1K/4SG
> >
> >      Tel    : 010-82334433-356  /  8-0086-22-356
> >      Email  : [EMAIL PROTECTED]
> >  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> >
> >
> > _______________________________________________
> > 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

Reply via email to