When attempting to press the login button I'm getting this error:
1) Error:
test_remove_category_missing_name(TC_sample_tests):
NameError: undefined local variable or method `object_exist_check' for #<WET::WebButton:0x2b31d80>
D:/ruby/lib/ruby/site_ruby/1.8/qantom/webobjects/WebObject.rb:37:in `click'
D:/ruby/myRuby/AdminTest/WETCat.rb:22:in `setup'
Here is the important part of the script:
require 'WET'
include WET
$SERVER = "<server name>"
class TC_sample_tests < Test::Unit::TestCase
def setup
test_site = 'http://'+$SERVER+'/imadmin/admin';
# open the browser
$ie = Browser.new()
$ie.goto(test_site)
$ie.TextField("name:=username").set("<username>")
$ie.TextField("name:=password").set("<password>")
$ie.TextField("name:=userdomain").set("<domain>")
$ie.Button("name:=login").click() # this is where the error is being generated
...
end
I can't find where "object_exist_check" mentioned in the WET WebObject module would be. Where is it supposed to be?
I have watir installed via gem version 1.41 and WET version 0.5.1 for watir v1.4.
Thanks in advance!
--
Steph
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
