Hi all,

I have just started to use Watir and have fallen in love with its ease of use.
I am currently stuck with a problem and not able to find a way out.

I am trying to click on a link present in a frame, using the following command ( generate by Watir webrecorder ):
$IE1.frame( :name, "Main").link( :text, "CHAND TRHOQ01").click 
I am getting an error that the frame named "Main" is not present.

The page has the following frame structure:-

<frameset id='Parent' name='Parent' rows='89,*' border=0 >
     <noframes>This page contains frames, please update your browser to view this page.</noframes>
     <frame name='Tabs' tabIndex=-1 scrolling='no' noresize target='main' src=''>
     <frameset id='NavMain' name='NavMain' cols='173,*' border=0>
         <frame name='Nav' scrolling='auto' noresize tabIndex=-1 src=''>
         <frame name='Main' noresize src=''>
     </frameset>
</frameset>

When i do $IE1.show_all_objects()  it gives:-

-----------Objects in  page -------------
                  id=                 src="">HTML Document     name=Tabs           id=                 src="">HTML Document     name=Nav            id=                 src= "">

When i do $IE1.show_frames  it gives:-

there are 3 frames
frame  index: 1 name: Tabs
frame  index: 2 name: Nav
frame  index: 3 --Access Denied--

Am i doing something wrong in the Watir commands used?
Or is this a know issue and what is a probable workaround which i can try?
Plz point me towards any resource which may be helpful.
Any help is appreciated.

Thank You,
Chandan R
http://chandanr.blogspot.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to