Hi Tim,

Thank you very much for your help, It works now both, by the command
line or by setting the OPTRUBY variable.

I have just seen a little mistake in your change in the documentation,
you wrote require 'rubgyems' instead of require 'rubygems'.

Regards.

Michel


On 17 fév, 22:09, Tim Koopmans <[email protected]> wrote:
> Try
>
> require 'rubygems'
>
> Before your require for Watir... Or set your RUBYOPT environment variable ...
>
> Regards,
> Tim
>
> On 18/02/2011, at 8:06 AM, mmauric <[email protected]> wrote:
>
> > As explained in the getting started, I have installed ruby-1.8.7-p330
> > with the option to update the path variable on Windows 7 pro and
> > performed:
>
> > gem update --system
> > gem install watir
>
> > -> watir-1.7.1 is installed (all seems right)
>
> > Then I try to launch Watir and here is below the error message I get:
>
> > C:\Ruby187>irb
> > irb<main>:001:0>require 'watir'
> > LoadError: no such file to load --watir
> >       from <irb>:2in 'require'
> >       from <irb>:2
> > irb<main>:003:0>
>
> > With Ruby-1.8.7, I have got some successfully cases (answer =>true),
> > but I have not understood the scenario to reproduce.
>
> > I have tried with different current directories and other versions of
> > ruby without more success.
>
> > Thank you for your help.
>
> > Regards.
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search 
> > before you ask, be nice.
>
> > [email protected]
> >http://groups.google.com/group/watir-general
> > [email protected]

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to