#1 The window pops because the watir library uses a second script to encapsulate the functionality of doing a file upload. The second program is cycling through all of the window titles it can find looking for the file dialog that was created when your script said to upload a file. When it finds it, it sets the entry field to the name you provided and clicks the "select" button on the dialog, making it go away.
#2 The only way to prevent it would be to rename the script it is running to a .rbw file extension and change the watir library to use the renamed script.
.rb files open in a console
.rbw files open without one.
But, you lose the debugging information it provides... Hope that helps
j.
On 10/24/05, Dale Herrig <[EMAIL PROTECTED]> wrote:
When ever I use the ie.fileField it pops up a dos window and seems to be cycling through a number of directories.Question #1. Does anybody know why the window is popped up and what it is doing.Question #2. Is there a way to prevent the dos window from popping up.Thanks
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
--
"http://ruby-lang.org -- do you ruby?"
Jeff Wood
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general