As in the parens, with the latest version do Watir::Browser.new
Cheers, Charley Baker Lead Developer, Watir, http://watir.com On Tue, Nov 30, 2010 at 12:41 PM, abhibolg123 <abhi.r...@gmail.com> wrote: > Sorry , mistakenly i could not c this myself.I made the order change > regarding instance creation but now i have this error- > > rb:2: uninitialized constant IE (NameError) > for ie =IE.new code line. > > Still unable to get results .Any idea? > > Thanks > Abhirevo > > On Dec 1, 12:17 am, Charley Baker <charley.ba...@gmail.com> wrote: >> You're using the ie variable before setting it up, switch these two lines: >> >> > ie.goto("http://www.google.com") >> > ie =IE.new >> >> ie = IE.new ( or Watir::Browser.new) >> ie.goto("http://www.google.com") >> >> -c >> >> On Tue, Nov 30, 2010 at 11:54 AM, abhirevo1 <abhi.r...@gmail.com> wrote: >> > Hi, >> >> > Thanks for reply. >> > I tried test Watir script to check is everything fine and faced this >> > error: >> > require "watir" >> > ie.goto("http://www.google.com") >> > ie =IE.new >> > ie.text_field(:name, "q").set "pickaxe" >> > ie.button(:name, "btnG").click >> >> > but it gives me error like >> > rb:2: undefined local variable or method `ie' for main:Object (NameError) >> >> > I am unable to get it why this error is coming , never faced this problem >> > when i installed Watir on my XP machine last time. >> > Please help me out if this is some OS dependent issue (also my lapi is 64 >> > bit , is it a problem). >> > Please suggest >> >> > Thanks >> > Abhirevo >> >> > On Tue, Nov 30, 2010 at 2:31 PM, Željko Filipin >> > <zeljko.fili...@wa-research.ch> wrote: >> >> >> On Mon, Nov 29, 2010 at 8:00 PM, abhirevo1 <abhi.r...@gmail.com> wrote: >> >> > Please have a look at attached file and let me know is it an error? >> >> >> If you take a closer look, you will see that you got those (warning) >> >> messages while installing ri and rdoc documentation for nokogiri gem (that >> >> watir gem needs). In the future, you can copy/paste the text from command >> >> line, there is no need for screen shots. Not to mention that Google is far >> >> better at indexing text than screen shots (so your question could help >> >> somebody). :) >> >> >> Željko >> >> -- >> >> watir.com - community manager >> >> watirpodcast.com - host >> >> testingpodcast.com - audio podcasts on software testing. all of them >> >> >> -- >> >> Before posting, please readhttp://watir.com/support. In short: search >> >> before you ask, be nice. >> >> >> watir-general@googlegroups.com >> >>http://groups.google.com/group/watir-general >> >> watir-general+unsubscr...@googlegroups.com >> >> > -- >> > Before posting, please readhttp://watir.com/support. In short: search >> > before you ask, be nice. >> >> > watir-general@googlegroups.com >> >http://groups.google.com/group/watir-general >> > watir-general+unsubscr...@googlegroups.com > > -- > Before posting, please read http://watir.com/support. In short: search before > you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com