|
From: Steven P. <spa...@go...> - 2006-10-19 22:30:18
|
<div>When browsing for a file I use this function:</div>
<div> </div>
<div>/**<BR> * This function chooses a file in the Browse for File
popUp window.<BR> */<BR>this.browseForFile =
function(fpath)<BR> {<BR> var popupWin =
this.waitForWindow("Choose File", 30000);<BR>
this.findWindow(popupWin, "Edit").sendText(fpath);<BR>
this.findWinButton(popupWin,"&Open").click();<BR> };<BR></div>
<div>fpath is the path to the file (e.g. <A
href="file://sharename/file.txt">\\sharename\file.txt</A>).</div>
<div>This function should be called after clicking the button
that causes the "Choose File" window to open up.</div>
<div>I hope this helps.<BR><BR>Thanks,<BR><BR>Steven Paredes<BR>Sr. QA
Automation Engineer<BR><A
href="mailto:spa...@go...">spa...@go...</A><BR>480-505-8800
x4277<BR><BR>**In accordance with GoDaddy.com's Data Retention Policy,
please delete this e-mail when you are finished**<BR></div>
<DIV id=wmMessageComp name="wmMessageComp"><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT:
blue 2px solid">-------- Original Message --------<BR>Subject:
Ieunit-general Digest, Vol 4, Issue 1<BR>From:
ieu...@li...<BR>Date: Thu, October 19,
2006 1:46 pm<BR>To: ieu...@li...<BR><BR>Send
Ieunit-general mailing list submissions
to<BR>ieu...@li...<BR><BR>To subscribe or
unsubscribe via the World Wide Web,
visit<BR>https://lists.sourceforge.net/lists/listinfo/ieunit-general<BR>or,
via email, send a message with subject or body 'help'
to<BR>ieu...@li...<BR><BR>You can reach
the person managing the list
at<BR>ieu...@li...<BR><BR>When replying,
please edit your Subject line so it is more specific<BR>than "Re:
Contents of Ieunit-general digest..."<BR><BR><BR>Today's
Topics:<BR><BR> 1. Field type file problem
(wj...@co...)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message:
1<BR>Date: Thu, 19 Oct 2006 15:34:44 +0000<BR>From:
wj...@co...<BR>Subject: [Ieunit-general] Field type file
problem<BR>To:
ieu...@li...<BR>Message-ID:<BR><101...@co...><BR><BR>Content-Type:
text/plain; charset="us-ascii"<BR><BR>I am attempting to automate an
application. One of the issues that I am running into is,
on the form I am working with is a field of input type file.
I got ieunit to recognize/find the field by changing the
leDhtml.js file and adding e.type=="file" to the findfield function.
The difficulty I am having is using setfield to put data into
this field. When I issue the setfield command against that field
nothing happens and the test case continues. Anyone have any idea
about the input type file and what you need to do to get the setfield
working against it?<BR>-------------- next part --------------<BR>An
HTML attachment was scrubbed...<BR>URL:
http://sourceforge.net/mailarchive/forum.php?forum=ieunit-general/attachments/20061019/a07aaac2/attachment.html
<BR><BR>------------------------------<BR><BR>-------------------------------------------------------------------------<BR>Using
Tomcat but need to do more? Need to support web services,
security?<BR>Get stuff done quickly with pre-integrated technology to
make your job easier<BR>Download IBM WebSphere Application Server
v.1.0.1 based on Apache
Geronimo<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<BR><BR>------------------------------<BR><BR>_______________________________________________<BR>Ieunit-general
mailing
list<BR>Ieu...@li...<BR>https://lists.sourceforge.net/lists/listinfo/ieunit-general<BR><BR><BR>End
of Ieunit-general Digest, Vol 4, Issue
1<BR>******************************************** </BLOCKQUOTE></DIV>
|