Nuemann, Zelko,

I have been able to set all the file fields in the fileupload.html unittest sample without any problems.Could it be a file permissions issue that you are running
into (I saw you mentioned - file can’t be saved (1120))


In fact I just dont have any issue with any kind of POPUPS


I tried all variants of file names like,
one_two.xls
dir with spaces\test.txt
I dont have any problems at all. Could it be a permission issue: Here's the
sample I tried for the file_fields:

-----------------------
require 'WET'
include WET

Browser("title:=Test page for File Fields").File("index:=1" ).set("c:\\dir with spaces\\dir 5\\one_two.xls")

my_dir="c:\\dir with spaces\\"
all_dirs = [ "dir1", "dir2", "dir 3", "dir 4", "dir 5"]
file_name = "test.txt"

count = 1
all_dirs.each do |d|
f = my_dir + d + "\\" + file_name
puts f
Browser("title:=Test page for File Fields").File("index:=" + count.to_s()).set f
count = count + 1
if count == 3
count = 4
end
end
--------------------

My directory listing is
c:\dir with spaces
c:\dir with spaces\dir1\test.txt
c:\dir with spaces\dir2\test.txt
c:\dir with spaces\dir 3\test.txt
c:\dir with spaces\dir 4\test.txt
c:\dir with spaces\dir 5\test.txt
c:\dir with spaces\dir 5\one_two.xls
---------------------

Raghu

Neumann, Carsten - ENCOWAY wrote:

It’s not a nomal Windows error, ist says: „file can’t be saved (1120)“

I don’t think that helps, there are no spaces in the file path, or is there a problem using file names like “one_two.xls”?

Carsten

------------------------------------------------------------------------

*Von:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Im Auftrag von *Zeljko Filipin
*Gesendet:* Dienstag, 9. August 2005 10:31
*An:* [email protected]
*Betreff:* RE: [Wtr-general] fileField problems

What error do you get?

If file path contains spaces (C:\Documents and Settings\file.txt) I get error (in pop up window with title 'Choose file') - C:\Documents File not found. Please verify the correct file name was given.

But it works fine if file path does not contain spaces.

Zeljko

------------------------------------------------------------------------

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Neumann, Carsten - ENCOWAY
*Sent:* Tuesday, August 09, 2005 10:27 AM
*To:* [email protected]
*Subject:* WG: [Wtr-general] fileField problems

It’s not the same, what I get, my “choose file”-window stays open after the command box closed. It waits for me, to choose a file and click “open” or whatever the button is called) , after that it continues normally, by submitting the file_field content. That doesn’t work as well, I get an error from the web page. Why doesn’t he choose a file by himself?

Thanks!
Carsten Neumann

------------------------------------------------------------------------

*Von:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Im Auftrag von *Torres, Ben (HQP)
*Gesendet:* Dienstag, 9. August 2005 00:48
*An:* [email protected]
*Betreff:* [Wtr-general] fileField problems

Hi,

I just ran the filefield_test.rb in the unittests folder. When the file executed, another command window opened and started to print out a bunch of text while the "choose file" window was opening. The "choose file" window remained open for about 10 seconds, and at this time the command window just kept on printing some stuff out. I don't know if the file was finally selected because after 10 seconds, the windows closed. Has anyone else encountered this problem?

Here's a snippet of the printout:

c:/ruby/lib/ruby/site_ruby/1.8
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
c:/ruby/lib/ruby/site_ruby
c:/ruby/lib/ruby/1.8
c:/ruby/lib/ruby/1.8/i386-mswin32
.
c:/ruby/lib/ruby/site_ruby/1.8
getWindowHandle - looking for: Choose file
Found window: Auto-Suggest Dropdown
Caption =
Found window: SysFader
Caption =SysFader
Found window: tooltips_class32
Caption =
Found window: WorkerW
Caption =
Found window: tooltips_class32
Caption =
Found window: DV2ControlHost
Caption =Start Menu
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: Shell_TrayWnd
Caption =
Found window: TdxBarHintWindow
Caption =
Found window: THintWindow
Caption =Add Defect
Found window: Auto-Suggest Dropdown
Caption =
Found window: SysFader
Caption =SysFader
Found window: TTraceAllForm
Caption =Trace All Changes
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: BaseBar
Caption =
Found window: BaseBar
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =
Found window: tooltips_class32
Caption =

------------------------------------------------------------------------

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


--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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

Reply via email to