Two ways to do this. A.
> irb >> load 'google_search.rb' B. > ruby google_search.rb Bret AgileTester78 wrote: > Hello I am new to Ruby and I downloaded and installed Ruby as well as > Watir. I downloaded the google_script.rb to my directory. I see the > file in my directory. > Steps to run the script: > 1.open irb > 2. Type "ruby google_search.rb > > get this message: > > NameError: undefined local variable or method 'google_search' for > main:Object > > > Can someone help, thanks. > > > > -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Austin March 25-26, Portland/Beaverton April 16-17 www.watircraft.com/training --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
