Hi san,

Which watir version are using? It works for me on "watir-1.5.1.1100". I
tried the following:

ie.file_field(:name, "file1").click_no_wait
ie.file_field(:name, "file1").set("c:\\Program Files\\input.txt")

Regards,
Angrez


On 12/29/06, Angrez Singh <[EMAIL PROTECTED]> wrote:

Hi san,

Can you try adding double quotes to the file path like this:

ie.file_field(:id, "onetidIOFile").set("\"c:\new folder\abc.jpg\"")

This should work.

Regards,
Angrez

On 12/29/06, san <[EMAIL PROTECTED]> wrote:
>
> Ok, It Was Not The Double Quotes That Was Causing Problem :) Its The
> Space In The Name Of The Folder... It taking Path Like "c"\abc.gif" But Its
> Not Taking The Path like 'c:\new folder\abc.jpg', as it says can't find
> 'c:\new'.
> I Think The Space Between New & Folder Is Causing Problem... I Also
> Tried... 'c:\\new\ folder\\abc.jpg' and "c:\\new\ folder\\abc.jpg", but
> nothing worked... So Whats The Solution Pls?
>
> Also as you said ie.file_field(:id, "onetidIOFile").set('c:\abc.gif') is
> working fine, but another black dos box is coming up and many lines are
> passing through it very fast, i think it the way of searching the file path,
> but its taking a long time, at least 10 secs for a file... Is there any
> other way to do it... Thanks For The Reply...
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=5946&messageID=16647#16647
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>


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

Reply via email to