You need to run the install.rb script. At 11:26 AM 8/9/2005, Iain wrote:
I'm getting an error whenever I add require 'watir/dialog' to any scriptc:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__': No such file to load -- watir/dialog (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require' from V2_Setup.rb:8 I'm guesing that it's due to the way I installed it. I've never installed Watir from the development tarball before, I always use the installer. Can you please let me know where I should be extracting the files to? Thanks Iain -----Original Message----- From: Bret Pettichord [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 7:43 PM To: [email protected] Subject: [Wtr-general] New, improved support for popup dialogs I've committed the initial version of new code for supporting popup dialogs. Using this code: - You don't have to use separate 'mini-scripts.' - You don't have to spawn a process. - You don't have to spawn a thread. This is all done for you behind the scenes. You use it like this: require 'watir/dialog' $ie.remote_eval <<-END button(:value, 'whatever').click END dialog.button('OK').click Note that remote_eval takes a string argument. This is the same: ie.remote_eval "button(:value, 'whatever').click" The code in the string is evaluated in the context of an equivalent IE object in an independent process. See dialog_tests.rb for more examples. I am very interested in getting feedback on the names of the interface for this functionality: "remote_eval", "dialog", etc Get the development tarball: http://rubyforge.org/cgi-bin/viewcvs.cgi/watir/watir.tar.gz?tarball=1&cvsroo t=wtr This code currently supports simple dialogs. Next is to add support for the authorization dialogs -- a frequently requested thing. I really would like to have unit tests for this, which means i need a quick server that does authorization. Anyone know how to roll one with webrick? _____________________ Bret Pettichord www.pettichord.com _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
_____________________ Bret Pettichord www.pettichord.com _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
