Hi Stephanie,

Are you using a released version of Watir 1.4 or something off the SCM repository?

I was trying to locate the source of the problem from your stack trace:

        from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
        from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'

and in the version(s) of Watir1.4 that I have, I could not find neither
assert_exists method in line number 1766 nor 'set' method at 3368. If you are using a version from the SCM could you tell me the exact revision number so that I could check the same version out here and try it.
Thanks
Raghu




Stephanie Mayfield wrote:

I apologize in advance if this question has already been asked.  I'm
new to the list and the hunting and pecking in the archives didn't
turn up an answer.  (Aside: is there a search engine on the archives?)

My problem is I'm getting an error when attempting to do a very simple
assignment to a text field.

require 'WET'
include WET

ie=Browser.new()
ie.goto "http://<URL here>"
ie.show_all_objects

puts "username object exists: " + ie.TextField("name:=username").to_s
ie.TextField("name:=username").set('first.last')


My output confirms that the username field does in fact exist on the page:

username object exists: WebEdit(name:=username)

But then I get this exception:

D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3205:in `locate': undefined
method `getObject' for nil:NilClass (NoMethodError)
        from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1766:in `assert_exists'
        from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3368:in `set'
        from D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebEdit.rb:59:in 
`set'
        from D:/ruby/myRuby/AdminTest/simple.rb:9

I'm not sure if this is a WET issue or a Watir issue. What I'm running on is: - Win XP
-       Watir v1.4
-       WET v0.5.1 (for water v1.4, doesn't include the optional component)

Watir by itself access the website just fine, however I have
JavaScript pop-ups so I'm attempting to use WET to access those.

The URL and username do not contain any extended characters.

Assistance is greatly appreciated!



--
Qantom Software

http://www.qantom.com
Ph : 26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to