You are correct, the <a></a> tags are what make it a link.
Using Watir 1.5, this will work:
$ie.frame("mainFrame").cell(:text,"Create New Policy).click
Bret
On 5/17/06, Manish Sapariya <[EMAIL PROTECTED]> wrote:
Hi,
In the attached html code, I have two tables in 2nd Frame.
There is a link in first table "Create New Policy". I cannot
click on this link by
$ie.frame("mainFrame").link(:text,"Create New Policy).click.
However, the link in 2nd table can be clicked when I say
$ie.frame("mainFrame").link(:text, "edit").click
I am not a web-developer, but only difference I noticed that
the second link is enclosed in <a> </a> tag, whereas the first
one is not.
Any ideas?
Thanks and Regards,
Manish
<html>
<head>
<title>Saved Search Policies</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
<!-- css styles end -->
<script language="_javascript_"> var imageUrl ="/rpm/images/"; </script>
<!-- include js begin -->
<script language="_javascript_" src="" calendar code --->
<script language="_javascript_" src=""><script language="_javascript_" src=""><script language="_javascript_" src=""
<script language="_javascript_" src=""><script language="_javascript_" src=""><script language="_javascript_">
window. () {
doShyTags();
shyreflow();
}
window. () {
shyreflow();
}
</script>
<style type="text/css">
#mcontent
{
position:absolute;
top:0px;
left:1px;
width:auto;
margin:0;
padding:0;
border:0;
z-index: 0;
}
.newPolicyLink
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:bold;
line-height:20px;
padding:0 8px;
white-space: nowrap;
cursor:pointer;
color:#043A6B;
text-decoration: underline
}
.lstllbdrw
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
padding:6px;
vertical-align:middle;
}
.rdata
{
color:blue;font-size:12px;font-family: Verdana, Arial, Helvetica, Sans-serif;
font-weight:bold;
vertical-align:middle;
}
.rc-ul
{
text-decoration:none;
color:#000000;
font-size:12px;
vertical-align:bottom;
}
</style>
</head>
<body >
<div id="mcontent">
<div class="navbg" style="padding-left:15px"><strong>Configure Policies </strong></div>
<div> </div>
<!-- **** BEGIN : CREATE NEW POLICY/RULE LINKS SECTION *******-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="top" id="mCol">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" class="newPolicyLink" location.href=''">Create New Policy</td>
<td width="15%" class="newPolicyLink" ">Create New Rule</td>
<td> </td>
</tr>
</table>
<!-- **** END : CREATE NEW POLICY/RULE LINKS SECTION *******-->
<table width="100%" border="0" cellspacing="10" cellpadding="0" id="topTbl">
<tr><td id="mainspace"><div class="navbg" style="margin:25px 10px 6px 0"><img src="" align="absmiddle" width="20" height="20" style="border:1px solid #ccc"> <strong>View All Policies</strong></div>
<!-- ****** BEGIN : Policy/Rules DISPLAY *** -->
<!-- ****** BEGIN :POLICY NAME / OWNER / EDIT /SCHEDULE ******* -->
<div id="groupedtbls">
<div class="rc-ul" style="margin:25px 10px 6px 0"><img
id="imgtblcollapse" src="" srcExpanded="/rpm/images/arrow- down.gif" srcCollapsed="/rpm/images/arrow-right.gif"
width="19" height="19" align="absmiddle" true);doShyTags();shyreflow();"><strong>Manish </strong><a href="" style="color:blue;" class="rdata">edit</a><b><small> Owner: admin </small>
</b>
<a href="" style="color:blue;" class="rdata">schedule</a>
</div>
<!-- ****** END :POLICY NAME / OWNER / EDIT /SCHEDULE ******* -->
<table id="ruleTbl" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B8C7D1" class="tblhide">
<tr class="trfirstrow">
<td class="lstlbdrw" width="20%">Owner</td>
<td class="lstlbdrw" width="25%" >Search Name</td>
<td class="lstlbdrw" width="4%" >View</td>
<td class="lstlbdrw" width="4%">Edit</td>
<td class="lstlbdrw" width="4%">Delete</td>
<td class="lstlbdrw" width="5%">Status</td>
<td class="lstlbdrw" width="10%">Schedule</td>
<td class="lstlbdrw" width="25%">Description</td>
<td class="lstlbdrw" width="4%">Severity</td>
</tr>
<tr bgcolor="#FFFFFF" class="lsts" id="childRow">
<!-- OWNER -->
<td>admin</td>
<!-- RULE NAME -->
<td class="lstllbdrw">
alldoc
</td>
<!-- VIEW -->
<td class="lstllbdrw"><a href=""
<!-- EDIT -->
<td class="lstllbdrw">
<a href="" Search&searchName=admin%5Calldoc">edit</a>
</td>
<!-- DELETE -->
<td class="lstllbdrw">
<a href="" confirm('Delete this saved search?');">delete</a>
</td>
<!-- STATUS -->
<td class="lstllbdrw">Published</td>
<!-- SCHEDULE / DESCHEDULE -->
<td class="lstllbdrw">
<a href="">
</td>
<!-- DESCRIPTION -->
<td class="lstllbdrw">
alldoc
</td>
<!-- SEVERITY -->
<td class="lstllbdrw"> 3</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
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
