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

Reply via email to