When I type the commans into IRB here is was I get as output:

irb(main):001:0> require 'Watir'
=> true
irb(main):002:0> test_site='www.google.com'
=> "www.google.com"
irb(main):003:0> IE=Watir::IE.new
=> #<Watir::IE:0x3e09a40 @url_list=["about:blank"], @typingspeed=0.08,
@pause_af
ter_wait=0.1, @error_checkers=[], @page_container=#<Watir::IE:
0x3e09a40 ...>, @a
ctiveObjectHighLightColor="yellow", @ole_object=nil,
@rexmlDomobject=nil, @logge
r=#<Watir::DefaultLogger:0x3e033e8 @level=2,
@formatter=#<Logger::SimpleFormatte
r:0x3e03244 @datetime_format="%d-%b-%Y %H:%M:%S">,
@default_formatter=#<Logger::
Formatter:0x3e03334 @datetime_format=nil>, @progname=nil,
@logdev=#<Logger::LogD
evice:0x3e032e4 @mutex=#<Logger::LogDevice::LogDeviceMutex:0x3e03280
@mon_enteri
ng_queue=[], @mon_count=0, @mon_owner=nil, @mon_waiting_queue=[]>,
@dev=#<IO:0x3
866ad4>, @shift_size=nil, @shift_age=nil, @filename=nil>>,
@down_load_time=0.515
, @type_keys=true, @speed=:slow, @ie=#<WIN32OLE:0x3e03460>>
irb(main):004:0> IE.goto(test_site)
=> 0.234
irb(main):005:0> IE.text_field(:name,"q").set("watir")
Watir::Exception::UnknownObjectException: Unable to locate element,
using :name,
 "q"
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:52:
in `assert_exists'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:284
:in `enabled?'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:56:
in `assert_enabled'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
input_elements
.rb:323:in `set'
        from (irb):5


But in my previous post I executed the script..which failed then
logged into IRB and it was at google.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to