Re: [Http-webtest-general] trying to test button
Brought to you by:
m_ilya,
richardanderson
From: Srdjan <sr...@ca...> - 2004-06-02 07:05:24
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Then you're out of luck. I mean if you're depending on JavaScript to do whatever in the on_submit() handler. I know of no non-browser user agent that does JavaScript. But you should still be able to "know" what would be the result of clicking the button in terms of setting the form field values, and set them yourself. Srdjan David McBride wrote: | Thanks for replying. | | The parameters won’t be processed if the submit() function doesn’t run | and the submit() function won’t operate unless the image is clicked. | | So, I’m still stuck with trying to click the image. | | - David | | on 6/1/04 7:01 PM, Srdjan at sr...@ca... wrote: | | 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, | | | | | | | | Im new to WebTest and Ive been playing with it for a couple of days | | with some success. Ive 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="loginForm" id="loginForm" method="POST"> | | | | <input type="hidden" name="form" value="do_log_in"> | | | | | | | | | | | | The form has a button generated as follows: | | | | | | | | <tr> | | | | <td colspan="2" align="right"> | | | | <img src="../images/btn_log_in.gif" | | style="cursor:pointer;cursor:hand" onclick="submit()"); | | | | </td> | | | | </tr> | | | | | | | | Ive 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 | | | | | | - ------------------------------------------------------- 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAvXwnZtcHxCitRpgRAkxdAJ9XNIaT7P5qLP4e5+khMXva8jRiVQCfXa61 aqReRstkCgj7ACw9v9yn/oY= =bbrO -----END PGP SIGNATURE----- |