
blizzard
Deleted
Jun 8, 2001, 7:55 AM
Post #1 of 3
(2493 views)
|
I'm working on a script that goes out and tests the functionality of websites. In order to do this it needs to fill out web based html forms and return them to the server and check the returned page. So far everything is working fine, the script can fill in text fields, and submit forms just fine. There are two problems that I haven't been able to solve. There are couple of places that use file upload or download buttons. This is where the user can click on button and get a window which shows them the contents of their drive, and then they can choose either which file to upload, or where to download a file. The download form looks like: <form method="post" action="/cgi-bin/" enctype="mutipart/form-data"> <input type="submit" name="submit" value="Download"> <input type="hidden" name="function" value="Download"> </form> The upload form is similar, though it has a: <input type="file" name="file" size="20"> So far I've been using the value field to fill out the forms and submit them, though this doesn't work with these forms... Any Ideas?
|