This works for me

ie.file_field(:id, "onetidIOFile").set('c:\abc.gif')
ie.file_field(:name,
"urn:schemas-microsoft-com:office:office#FileLeafRef").set('c:\abc.gif')

I guess that your problem is that c:\abc.gif is in double qoutes
("c:\abc.gif"). Use single quotes and it should work just fine
('c:\abc.gif').

I would know more if you posted your error message instead of just "is not
working". :)

For more information see
http://en.wikibooks.org/wiki/Ruby_Programming/Strings
--
Zeljko Filipin
zeljkofilipin.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to