RE: [Http-webtest-general] trying to test button
Brought to you by:
m_ilya,
richardanderson
From: David M. <dmc...@la...> - 2004-06-02 20:45:11
|
Finally got it! You were right, no need to click anything: test_name =3D Submit wrong username & password url =3D http://localhost/lw/ara/lwcgi method =3D post params =3D ( form =3D> do_log_in user_id =3D> nobody password =3D> nobody ) text_require =3D ( Invalid User ID User ID: Password:) text_forbid =3D ( In order to continue you must log in first )=20 end_test Thanks for your help ;-) - David -----Original Message----- From: htt...@li... [mailto:htt...@li...] On Behalf Of Srdjan Sent: Tuesday, June 01, 2004 6:01 PM To: David McBride Cc: htt...@li... Subject: Re: [Http-webtest-general] trying to test button -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 That's not button at all - just a clickable image. Considering that = clicking the image does nothing but submit, you don't need to use ::Click methods at = all - just a plain POST request with params. Srdjan David McBride wrote: | Greetings, | | | | I'm new to WebTest and I've been playing with it for a couple of days | with some success. I've run into a problem, though. I have a login | form to which I want to submit data (i.e., "user_id", "password"). = The | form begins as follows: | | | | <form name=3D"loginForm" id=3D"loginForm" method=3D"POST"> | | <input type=3D"hidden" name=3D"form" value=3D"do_log_in"> | | | | | | The form has a button generated as follows: | | | | <tr> | | <td colspan=3D"2" align=3D"right"> | | <img src=3D"../images/btn_log_in.gif" | style=3D"cursor:pointer;cursor:hand" onclick=3D"submit()"); | | </td> | | </tr> | | | | I've been trying to use the ::Click methods to operate the button | without success. Can someone tell me what I need to do to operate the | button? Thanks. | | | | v/r | | | | - David | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAvTTcZtcHxCitRpgRAhcxAJ4nJDfTGpjE6ADJBvIdRTAb1mnacwCgpLtC HfLkk35G/3wiVKJXNFF0Fi8=3D =3D60PM -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Http-webtest-general mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/http-webtest-general |