hi I've had a hard time clicking this image

<td align="middle" colSpan="2"><input type="image" 
src="images/RBJ_LoginButtonOff.gif" border="0" tabindex="3"></td>

$ie.image(:src,/RBJ_LoginButtonOff/).click
# results with unable to locate object error

attached is the html source.

->      
         <<rbjadmin[2].txt>> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                <title>Default</title>
                <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
                <meta content="C#" name="CODE_LANGUAGE">
                <meta content="JavaScript" name="vs_defaultClientScript">
                <meta content="http://schemas.microsoft.com/intellisense/ie5"; 
name="vs_targetSchema">
                <LINK href="RBJAdmin.css" type="text/css" rel="stylesheet">
        </HEAD>
        <body leftMargin="0" rightMargin="0" topMargin="0" 
onload="javascript:document.Default.UID.focus();">
                <TABLE height="89" cellSpacing="0" cellPadding="0" width="100%" 
border="0">
                        <TR>
                                <TD width="100%" 
background="include\RBJ_Spacer1.gif" colSpan="3" height="17">&nbsp;</TD>
                        </TR>
                        <TR>
                                <TD noWrap width="429" bgColor="#003061" 
colSpan="1" height="48"><IMG height="48" src="include\RBJ_Logo.gif" 
width="429"></TD>
                                <TD noWrap align="right" width="180" 
bgColor="#003061" height="48"><FONT face="MS UI Gothic"></FONT></TD>
                                <TD align="right" bgColor="#003061" 
height="18"><IMG height="48" src="include\RBJ_ThomsonLogo.gif" width="115"></TD>
                        </TR>
                        <TR>
                                <TD noWrap background="include\RBJ_Spacer2.gif" 
colSpan="3" height="2">&nbsp;</TD>
                        </TR>
                </TABLE>
                <div align="center"><br>
                        <br>
                        <form name="Default" method="post" 
action="default.aspx" id="Default">
<input type="hidden" name="__VIEWSTATE" 
value="dDwtODQ0MDAzMjU2Ozs+dPdENU3CA7PdJEC1sf8ZiU7fMTE=" />

                                <table id="Table1" cellSpacing="0" 
cellPadding="0" width="240" bgColor="#dbecf6" border="0">
                                        <tr>
                                                <td width="9" height="148" 
rowSpan="3"><IMG height="148" src="images/RBJ_LoginBoxLeft.gif" width="9"></td>
                                                <td vAlign="bottom" 
height="34"><IMG height="34" src="images/RBJ_LoginBoxTop2.gif" width="240"></td>
                                                <td width="9" height="148" 
rowSpan="3"><IMG height="148" src="images/RBJ_LoginBoxRight.gif" width="9"></td>
                                        </tr>
                                        <tr>
                                                <td align="middle">
                                                        <table id="Table2" 
height="105" cellSpacing="0" cellPadding="0" bgColor="#dbecf6" border="0">
                                                                <tr>
                                                                        <td 
height="1">&nbsp;</td>
                                                                        <td 
height="1">&nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                        <td 
class="adminDefText" noWrap align="right">Username:&nbsp;</td>
                                                                        <td 
noWrap align="left"><input class="TextBox1" id="UID" type="text" size="10" 
name="UID" tabindex="1"></td>
                                                                </tr>
                                                                <tr>
                                                                        <td 
class="adminDefText" noWrap align="right">Password:&nbsp;</td>
                                                                        <td 
noWrap align="left"><input class="TextBox1" id="Password" type="password" 
size="10" name="Password" tabindex="2"></td>
                                                                </tr>
                                                                <tr>
                                                                        <td 
align="middle" colSpan="2"><input type="image" 
src="images/RBJ_LoginButtonOff.gif" border="0" tabindex="3"></td>
                                                                </tr>
                                                        </table>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td vAlign="top" width="212" 
height="9"><IMG height="9" src="images/RBJ_LoginBoxBottom.gif" width="240"></td>
                                        </tr>
                                </table>
                        </form>
                        <table width="500" border="0">
                                <tr>
                                        <td><span id="lblInfo" 
style="width:500px;"></span></td>
                                </tr>
                        </table>
                </div>
        </body>
</HTML>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to