Frame, nested frame

39 views
Skip to first unread message

rr

unread,
Dec 31, 2008, 5:35:50 AM12/31/08
to Watir General
Hi all,
I want to know how to write script for nested frame. I want to click
on object which is a link and it is in nested frame (means frame
inside frame) but there are 4 items in those frames. This situation
arises when I open my mailbox. Those 4 items are "Compose", "inbox",
"Folder", "Search". Only thing which differ all 4 items is 'href'. I
am not getting how to write script for particular item. I have used
ie.frame(:name, "name").frame(:name, "name") but it was not usefull as
number of items are there inside those frame. Please provide solution.

Wilson Xu

unread,
Jan 3, 2009, 8:29:35 PM1/3/09
to watir-...@googlegroups.com
Please ignore 'iframe' element in your script code, you can try it again and can you post your html source code.

Wilson

Jagdeep Jain

unread,
Jan 5, 2009, 12:21:24 AM1/5/09
to Watir General
Index can also be used to differentiate b/w the similar objects/
components.

On Jan 4, 6:29 am, "Wilson Xu" <xu.xiaodong.wil...@gmail.com> wrote:
> Please ignore 'iframe' element in your script code, you can try it again and
> can you post your html source code.
> Wilson
>

gem dandy

unread,
Jan 5, 2009, 9:35:05 PM1/5/09
to Watir General
Hello,

You might want to try the Webmetrics watir recorder. Very useful for
creating scripts.
http://www.webmetrics.com/products/script_recorder.html

I'm working on projects that have objects nested inside of frames
that are 3 levels deep.
The downside is that it can't do anything with pop ups - but hey there
are several
methods already available.

Gem Dandy

Trevor

unread,
Jan 14, 2009, 11:48:50 AM1/14/09
to Watir General
I find SpySmith useful for this sort of thing

http://agilethinking.net/qualityforge/spysmith/index.html

e.g. a link in my application is shown as:

Active Element: [A], Frame: [mainFrame/centralFrame], Index: [71]
<A href="releaseNotes.jsp">Release Notes</A>

Trevor
Reply all
Reply to author
Forward
0 new messages