Hey , Make sure C:\ruby\bin\ruby.exe invoked as Administrator (if you are running the script in Vista)
Thanks Ravi On Wed, Mar 18, 2009 at 9:56 PM, vladimir...@hotmail.com < vladimir...@hotmail.com> wrote: > > It opens Google web site, but does not type anything in the search > field. > All environment variables you've described have been set during Ruby > and Watir installation. > > The error is in /ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > element.rb:52. > > Thanks, > Vlad > > On Mar 18, 6:37 pm, "Darin Duphorn" <dduph...@redbrickhealth.com> > wrote: > > Does it open the web page correctly? Or does it fail right off the bat? > > > > Check the following. > > > > Goto Setting ->Control Panel-> System > > Click Advanced Tab > > Click Environment Variables > > Under Path Variable verify c:\Ruby\bin Exists. If not add it. > > Under PATHEXT Variable verify .RB exists. If not add it > > If variable RUBYOPT Doesn't Exist add it > > RUBYOPT - Value = -rubygems > > > > > > > > -----Original Message----- > > From: watir-general@googlegroups.com [mailto: > watir-gene...@googlegroups.com] On Behalf Of vladimir...@hotmail.com > > Sent: Wednesday, March 18, 2009 8:26 PM > > To: Watir General > > Subject: [wtr-general] Re: Getting 'assert_exists': Unable to locate > element, using :name, "q" (Watir::Exception::UnknownObject... > > > > Thank you, Darin for reply. > > > > Ruby version: > > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > > > > Gem list: > > *** LOCAL GEMS *** > > > > activesupport (2.3.2) > > builder (2.1.2) > > commonwatir (1.6.2) > > firewatir (1.6.2) > > fxri (0.3.6) > > fxruby (1.6.12) > > hoe (1.11.0) > > hpricot (0.6) > > log4r (1.0.5) > > rake (0.8.4, 0.7.3) > > rubyforge (1.0.3) > > rubygems-update (1.3.1) > > s4t-utils (1.0.4) > > sources (0.0.1) > > user-choices (1.1.6) > > watir (1.6.2) > > win32-api (1.4.0, 1.0.4) > > win32-clipboard (0.4.3) > > win32-dir (0.3.2) > > win32-eventlog (0.4.6) > > win32-file (0.5.4) > > win32-file-stat (1.2.7) > > win32-process (0.6.0, 0.5.3) > > win32-sapi (0.1.4) > > win32-sound (0.4.1) > > windows-api (0.3.0, 0.2.0) > > windows-pr (1.0.2, 0.7.2) > > xml-simple (1.0.12) > > > > On Mar 18, 6:02 pm, "Darin Duphorn" <dduph...@redbrickhealth.com> > > wrote: > > > I ran your code and it worked for me. > > > > > What Version of ruby did you load? > > > > > Type in command prompt > > > ruby -v > > > > > What gems do you have installed? > > > gem list > > > > > -----Original Message----- > > > From: watir-general@googlegroups.com > > > > > [mailto:watir-gene...@googlegroups.com] On Behalf Of > > > vladimir...@hotmail.com > > > Sent: Wednesday, March 18, 2009 6:42 PM > > > To: Watir General > > > Subject: [wtr-general] Getting 'assert_exists': Unable to locate > > > element, using :name, "q" (Watir::Exception::UnknownObject... > > > > > I was trying to run google_search.rb from tutorial: > > > > > require 'watir' > > > > > # set a variable > > > test_site = "http://www.google.com" > > > > > # open the IE browser > > > ie = Watir::IE.new > > > > > ie.goto test_site > > > > > ie.text_field(:name, "q").set "pickaxe" # "q" is the name of the > > > search field > > > > > Always getting 'assert_exists': Unable to locate element, using :name, > > > "q" (Watir::Exception::UnknownObjectException...) > > > > > Spent already half a day. Nothing works. Please, help. > > > > > Thank you very much, > > > Vladimir- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---