Good news! Please check out https://github.com/jarmo/WatirSplash/blob/master/lib/watirsplash/frameworks/watir.rb for Watir::Element#save_as (for file download) and Watir::FileField#set (for file upload) solutions using RAutomation. Maybe it helps you out to make a good solution. These two methods are used by WatirSplash for some time now and i'm using these at my work place. It seems to work pretty well. Of course any recommendations are welcome.
Jarmo On Fri, May 6, 2011 at 5:30 AM, Hugh McGowan <[email protected]> wrote: > Hi all, > > I've created a topic branch 'death_to_winclicker' which removes all > references to winclicker and now controls the dialogs (file and javascript) > through Rautomation. There are still some changes I'd like to do to make > some improvements on the existing functionality (like handle errors when the > file exists/doesn't exist in the file dialog, etc). Also, AutoIt is staring > me in the face in a mocking sort of way so I think I'll take replace that > too - there aren't actually all that many references left. Anyhow, a little > more to be done but feel free to poke around if you like - all the unit > tests pass so it should be reasonably close. > > Additionally, I've recompiled win32ole for 1.8.7. I still owe updating the > README on how to do this so it's a recipe for anyone else to repeat. > > Jarmo, I used Rautomation to pull this all together and I'm really > impressed. You've done a nice job with that tool. > > Thanks! > Hugh > > _______________________________________________ > Wtr-development mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-development > _______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
