Thread: [tclwebtest] Submit problem
Status: Abandoned
Brought to you by:
tils
From: Harish <on...@re...> - 2003-02-28 08:50:02
|
Hi there! I ran into one more problem while testing against a mail site: The test script used: ========================================================================= set server "www.rediffmail.com" do_request "http://$server" form find ~n "loginform" field find ~n "login" field fill "*****" field find ~n "passwd" field fill "*****" puts "Fields successfully filled" form submit puts "I have finished submitting" debug [response text] ========================================================================= The result was: - START: ../rediffmail.test at [28/Feb/2003:12:54:32] ----- --- do_request for http://www.rediffmail.com http status: >>302<< following a redirect to: http://mail.rediff.com/rediffin.htm --- do_request for http://mail.rediff.com/rediffin.htm http status: >>200<< Notice: unimplemented input type: image Notice: unimplemented input type: image Notice: unimplemented input type: image Fields successfully filled Form didn't have a matching submit: '' in "../rediffmail.test" line 9: field fill "****" field find ~n "passwd" field fill "*****" puts "Fields successfully filled" form submit ----- FAILED: ../rediffmail.test (took 4s) ----- DURATION: 4 1 of 1 tests FAILED: ../rediffmail.test ======================================================================= The following is the form: <form NAME=loginform ACTION=http://login.rediff.com/cgi-bin/login.cgi METHOD=post><input type=hidden name=FormName value=existing><img SRC=/uim/trans.gif WIDTH=1 HEIGHT=1 BORDER=0 HSPACE=0 VSPACE=0><br></td> <td WIDTH=218 VALIGN=top> <img SRC=/uim/trans.gif WIDTH=1 HEIGHT=3 BORDER=0 HSPACE=0 VSPACE=0><br> <font CLASS=sb2 COLOR=#FFFFFF> <b><a HREF="http://r.rediff.com/r?shopping.rediff.com/shopping/index.html&&Shop&&indiahome"><font COLOR=#FFFFFF>Shopping</font></a></b> </font><br> <img SRC=/uim/trans.gif WIDTH=218 HEIGHT=10 BORDER=0 HSPACE=0 VSPACE=0><br></td> <td WIDTH=1 BGCOLOR=#C8C8C8><img SRC=/uim/trans.gif WIDTH=1 HEIGHT=1 BORDER=0 HSPACE=0 VSPACE=0><br></td> </tr> </table> </td> </tr> </table> <!--inhome_redband_end--> <table WIDTH=780 CELLSPACING=0 CELLPADDING=0 BORDER=0> <tr> <td WIDTH=132 VALIGN=top BGCOLOR=#EEEEE3 ALIGN=right> <!-- Rediffmail Begin //--><table cellSpacing=0 cellPadding=0 width=132 border=0> <tr> <td class=wel colSpan=3 height=15><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td></tr> <tr bgColor=#96b4e6> <td class=mail width=9><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td> <td class=mail width=123 colSpan=2 height=17><font class=sb1 color=#ffffff><b>Rediffmail</b></font><br></td></tr> <tr bgColor=#eeeee3> <td width=9 rowSpan=4><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td> <td width=95><img height=8 hspace=0 src="/uim/trans.gif" width=1 border=0><br><font class=sb1><b>User Name:</b></font><br></td> <td width=28><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td></tr> <tr bgColor=#eeeee3> <td width=95 height=17><input maxLength=30 size=11 name=login><br></td> <td width=28 height=17><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td></tr> <tr bgColor=#eeeee3> <td width=95 height=12><font class=sb1><b>Password:</b></font><br></td> <td width=28><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td></tr> <tr bgColor=#eeeee3> <td width=95 height=17><input type=password maxLength=25 size=11 name=passwd><br></td> <td width=28 height=17><input type=image height=15 width=21 src="/uim/go_a.gif" border=0><br></td></tr> <tr bgColor=#eeeee3> <td width=9><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td> <td width=123 colSpan=2 height=42><font class=sb1><b>New user?</b> <a href="http://login.rediff.com/register.htm"><b>Sign up</b></a><br><a href="javascript:PasswdRemindWin()">Forgot password</a>?<br></font></td></tr> <tr bgColor=#eeeee3> <td width=9><img height=1 hspace=0 src="/uim/trans.gif" width=1 border=0><br></td> <td align=left width=123 colSpan=2 height=52> <hr width="95%" SIZE=1> <font class=sb1><b>Rediffmail Plus</b><br><a href="http://mail.rediff.com/buyplus.htm?rp05">Get more space</a><br><img height=8 hspace=0 src="/uim/trans.gif" width=1 border=0><br><b>Rediffmail Mobile</b><br><a href="http://mail.rediff.com/getitnow.htm">Get Office mail alerts</a><br><img height=8 hspace=0 src="/uim/trans.gif" width=1 border=0><br><b>Rediffmail Pro</b><br>Personalised email ids<br>eg. ra...@ra...<br><a href="http://www.rediffmailpro.com/">Sign In</a> <a href="http://www.rediffmailpro.com/">New Users</a><br></font> <hr width="95%" SIZE=1> <font class=sb1><b><a href="http://www.rediff.com/chat/chathome.htm">Chat</a><br><a href="http://ecards.rediff.com/ecards/index.html">Ecards</a><br><a href="http://messenger.rediff.com/">Messenger</a><br><a href="http://www.rediff.com/newsletters/newslett.htm">Daily Newsletters</a><br><a href="http://shopping.rediff.com/shopping/smschat/smschat.htm?signup_sms">Rediff SMS 2 India</a><br></b></font></form> Truth needs to be repeated only as long as there are disbelievers- Max Mueler |
From: Grzegorz A. H. <gr...@ef...> - 2003-02-28 16:01:22
Attachments:
parche
|
On Fri, Feb 28, 2003 at 07:45:37AM -0000, Harish wrote: > I ran into one more problem while testing against a mail site: > [...] > Form didn't have a matching submit: '' The code asumes all forms contain a submit button, and hence fails in the search of it, because the site uses an image, and I don't really know how it is meant to be used in the http query. Could you try the attached patch and see if it makes the form work? -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |