Hello,
I need to assert the text is displayed in the frame. Using the following
assert statement, I always get failed result.
When I use selectFrame("inet-menu-tree-frame") in selenium, it works. Not sure
why it is not working in Watir?
Attached html code. Please help.
assert(ie.frame(:name, "top_frame").frame(:name,
"inet-menu-tree-frame").contains_text("Welcome manager!"))
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META
http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML>
<HEAD><STYLE>
/* No matching styles were found. */
</STYLE></HEAD>
<BODY style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 0px solid;
BORDER-LEFT: #999999 0px solid; BORDER-BOTTOM: #999999 0px solid"
bottomMargin="0" bgColor="#dbe7ee" leftMargin="0" topMargin="0" rightMargin="0"
SogouAutoLinkDoc><TABLE cellSpacing="0" cellPadding="0" width="100%"
border="0"><TBODY><TR><TD noWrap align="left"><DIV style="FONT-SIZE:
12px"><FONT face="Arial" color="#000000">
<B>
<FONT color="#0000ff">Welcome manager!</FONT>
</B></FONT></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
*************************************************************************************
assert(ie.frame(:name, "top_frame").frame(:name,
"inet-menu-tree-frame").contains_text("Report Repository"))
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META
http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML>
<HEAD><STYLE>
/* No matching styles were found. */
</STYLE></HEAD>
<BODY style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 0px solid;
BORDER-LEFT: #999999 0px solid; BORDER-BOTTOM: #999999 0px solid"
bottomMargin="0" bgColor="#dbe7ee" leftMargin="0" topMargin="0" rightMargin="0"
SogouAutoLinkDoc><DIV id="__inetsoft__/" style="VISIBILITY: visible; POSITION:
absolute; TOP: 15px"><TABLE><TBODY><TR><TD noWrap><DIV style="FONT-SIZE: 12px">
<FONT face="Arial" color="#000000"><IMG height="16"
src="http://localhost:7070/sree/Examples?op=resource&name=%2finetsoft%2fsree%2fportal%2fportalimages%2ftreelist%2fdefault%2froot%2egif"
width="16" align="textTop" border="0" /> Report Repository<BR /></FONT>
</DIV></TD></TR></TBODY></TABLE></DIV></BODY></HTML>
Thanks!
Kui
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general