Use watir 1.5: ie.cell(:text, 'Login').click Reinier Mostert wrote: > Hi all, > > First off, I want to apologize for the uge chunk of HTML, but I can't > seem to figure out how to submit this correctly. > > I've tried a submit on the form, but I think the Javascript needs to > run to enable the login. I've tried to get to the login image > (there's no button), but I can't get past the DIV element (not sure > how to get the children of a DIV). Is there anyone that can help? I > can give more info if neccessary. > > Thanks in advance > reinier > > ---- cut here > ------------------------------------------------------------------------------- > > > <body class="login" text="#000000" onLoad = "bodyOnLoad();"> > <IE:clientCaps ID="oClientCaps" /> > > <div name="bglayer" id="bglayer" > > <form name="login" target="_top" action="/servlet/PortalLogIn/" > method="POST" onSubmit="document.button.src=imageButton.src"> > <input type="hidden" name="LOGIN"> > <input type="hidden" name="action"> > <table border=0 cellspacing=0 cellpadding=0> > <tr> > <td> > <img > src="/defaultStyleFamily/lite/images/loginBackgroundV1.gif" > id="loginBackground"/> > </td> > </tr> > </table> > > <!-- Entry Area --> > <div name="entryArea" id="entryArea" class="entryArea"> > <table height="110" width="152" border=0 cellspacing=0 > cellpadding=0> > <tr> > <td align="right" colspan="1">User Name</td> > <td> </td> > <td><input type="Text" name="usr" id="usr" > style="height : 20px; width:68px; font-size : 10px" value="" > maxlength="25"></td> > </tr> > <tr> > <td align="right" colspan="1">Company</td> > <td> </td> > <td><input type="Text" name="cpny" id="cpny" > style="height : 20px; width:68px; font-size : 10px" value="" > maxlength="32"></td> > </tr> > <tr> > <td align="right">Password</td> > <td> </td> > <td><input type="Password" style="height : 20px; > width:68px; font-size : 9px" name="pwd" ></td> > </tr> > <tr> > <td align="center" colspan=3> > <img src="/defaultStyleFamily/lite/images/loginBtn.gif" > id="loginBtn"/> > </td> > </tr> > <TR> > <td align="center" colspan=3> > <table> > <tr onclick="mymiPasswordHint()" > onmouseover="this.style.cursor='default'"> > <td><img > src="/defaultStyleFamily/lite/images/btnPointer.gif" /></td> > <td style="font-size:9px">I forgot my > password</td> > </tr> > </table> > </td></tr> > </table> > <div name="loginBtn" id="logInBtn" class="loginBtnArea"> > <table width= "125"> > <tr align="center" onclick="mymiLogin()" > onmouseover="this.style.cursor='default'"> > <td><img > src="/defaultStyleFamily/lite/images/btnPointer.gif" /></td> > <td align="left">Login</td> > </tr> > </table> > </div> > </div> > ---- cut here > ------------------------------------------------------------------------------- > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
