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!
--
Steph
Homepage: www.maesah.ca
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general