my watir code is...
def system_link
     $logger.log("## CAST_HOMEPAGE_05")
     $logger.log("")
     $logger.log "## System link
#####################################################################\n"
     $logger.log("Description-In Health Factor with lowest grade / System
subsection, click System link ") #logs only to corelogger file
     $logger.log("Expected Output-Outline page displaying Focus on System
systemX - part of CORPORATE - for snapshotX snapshot should be displayed ")
     $logger.log("")
     
$ie.link(:href,'http://172.16.59.105/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3').click
<http://172.16.59.105/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3%27%29.click>
 end

HTML CODE IS:-
<TR ID="m1359" CLASS="RowLevel1Style" >
           <TD CLASS="RowLevel1" >
<A BORDER="0" CLASS="Image"
ONCLICK="javascript:toggleRows('m1360');toggleImageSource('img2','themes/default/images/open-
menu.gif','themes/default/images/closed-menu.gif')"><IMG ID="img2"
SRC='themes/default/images/closed-menu.gif' ALT=""
ALIGN="absmiddle"/></A>             <A HREF="
http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3";
onmouseover="javascript:ShowTooltip('Access detailed quality and quantity
assessment page for the selected component.');"
onmouseout="javascript:HideTooltip();" >
             sys_asp
            </A>
            &nbsp;
           </TD>
           <TD CLASS="Hide" >
            2.77
            &nbsp;
           </TD>
           <TD CLASS="medium" >
            High Risk
           </TD>
           <TD CLASS="Hide" >
            0
           </TD>
           <TD CLASS="Value" >
            <A >
             <IMG SRC="themes/default/images/EastwardBlueArrow.png" ALT=""
/>
            </A>
            &nbsp;
           </TD>
           <TD CLASS="Value" >
            <A >
             <IMG SRC="http://localhost:8080/CASTAD/?filename=CAST64479.png";
ALT="" />
            </A>
            &nbsp;
           </TD>
          </TR>
in this code "sys_asp" is variable link.i.e user dependent.
i want to click this without depending on this name..

Regards
shalini
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to