I could be wrong, but I believe you need to navigate to the directory
that the file is in, then run irb.  The script should work at that
point.

On Mar 19, 10:55 am, AgileTester78 <[email protected]> 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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to