The unittests have great examples of just about anything you would want to do.  Looking at you html snippet below you should look at ‘filefield_test.rb’ in the unittests.

Something like:

                        $ie.fileField(:name,"dataFile").set(“C\:\\myfile\\myFile.txt”)           

                        $ie.button(:name,"Load").click

 

There are other unittests for every input type and then some.

 

Hope this helps,

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Case
Sent: Wednesday, June 14, 2006 5:37 PM
To: [email protected]
Subject: [Wtr-general] Entering Text into Forms

 

Unsure how to enter text into a Form.

 

Anyone assist?

 

HTML extract below:-

<div id="listProcessTypes">
<form name="newLoadAF" method="post" action="" enctype="multipart/form-data">
<br>
<input type="hidden" name="loadType" value="CDF">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Personal Details data file:
<input type="file" name="dataFile" size="50" value=""><br>&nbsp;
<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Load" class="button">
&nbsp;&nbsp;&nbsp;<input type="submit" name="cancelLoad" class="button" value="Cancel">
</form>
</div>

 

thanks

Andy

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.
 
The views and opinions are the originator's and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to