There must be away to solve this:

"I didn't manage to change that directory from Watir,"


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Denys Zakhzohyy
Sent: Wednesday, June 27, 2007 9:11 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] problem selecting file for upload
withWatir::FileField

Latest investigation showed that method +Watir::FileField.set+ attempts
to select file in the default browsed directory File Selector opens
with.
I didnt manage to change that directory from Watir, but file is selected
successfully when i put it to that default folder and call method as
below

   +reportFrame.fileField(:id,
/body_filebrowse/).set("qtpt1_20070612.txt")+

i.e. without specifying full path to the file.
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to