Re: [Wtr-general] How can I open and attach file using file_field method?

2006-06-01 Thread Michael Ruschena
I encountered this problem yesterday, and unlike the mail archives, I have an answer. I was getting exactly the behavior described below: 1) I would run a script using file_field.set 2) The script would get to the set method 3a) the choose file window would be invoked 3b) the file setFileDialog.rb

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-06-01 Thread Zeljko Filipin
If you want it fixed, enter a new case at Jira (http://jira.openqa.org/browse/WTR), so it would not be forgotten. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-06-01 Thread Bret Pettichord
Thanks for solving this problem.Now that we have a click_no_wait method, we shouldn't have to resort to external *.rb files in the first place.BretOn 6/1/06, Michael Ruschena [EMAIL PROTECTED] wrote: I encountered this problem yesterday, and unlike the mail archives, I havean answer. I was

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-01-12 Thread Cain, Mark
What behavior do you see? When my script runs I see a Dos window open with focus (just like WinClicker), then the file chooser window open under the Dos window. The Dos window scrolls through all the objects open and finally gets to the File Chooser window, the document name (from $path)

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-01-12 Thread chaya shetty
Hi, Code Used:$path = "C:/Watir/file.txt"$ie.file_field(:name,"srcfile").set($path)$autoit = WIN32OLE.new("AutoItX3.Control") $autoit.WinWait("Choose file", "Do you want to open or save this file?", 3)$autoit.WinActivate("Choose file")$autoit.WinWait("Choose file", "Look