[wtr-general] Re: file_field in File Upload dialog

2009-10-27 Thread Raveendran P
Hi Kogi, require 'rubygems' require 'win32ole' homers_bird(File_Upload_window_Name) def homers_bird(dialog_name,key={enter}) @ur=C:\\Documents and Settings\\raveendran\\My Documents\\My Videos\\nike_airport.flv wsh = WIN32OLE.new('WScript.Shell') wsh.AppActivate(dialog_name) sleep(2)

[wtr-general] Re: file_field in File Upload dialog

2009-10-27 Thread H Kogi
Raveendran and Ethan, Thanks for your input. I started doing what you posted using WIN32OLE and just relying on SendKey. On Tue, Oct 27, 2009 at 8:00 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Kogi, require 'rubygems' require 'win32ole' homers_bird(File_Upload_window_Name) def

[wtr-general] Re: file_field in File Upload dialog

2009-10-26 Thread Bret Pettichord
H Kogi wrote: I may be missing something very simple. When I get window's File Upload dialog, how can I identify file_field's i.e. id, name, index, etc? (index did not work). I looked in to the the following site and all the links from there but not finding answers.

[wtr-general] Re: file_field in File Upload dialog

2009-10-26 Thread H Kogi
Thank you for quick reply. But I cannot see each object in dialog box as html element. Is there anyway I can view as html elements? IE developer toolbar does not work. I am now trying with WIN32OLE. On Mon, Oct 26, 2009 at 8:15 PM, Bret Pettichord b...@pettichord.comwrote: H Kogi wrote:

[wtr-general] Re: file_field in File Upload dialog

2009-10-26 Thread Ethan
You want to interact with the elements of the 'file upload' dialog? As far as I know that thing doesn't have a document or elements that you can access like an html page. Or if it doesn't watir doesn't support that anyway. I could be wrong - if you figure out how to get a WIN32OLE handle on