Hi Stephanie,
Ian Phillips found that there was a problem with the archive in the
downloads.
I have just fixed it and we are runinng some tests on it. If all goes
well, I'll
be putting it up there in around an hours time. I'll keep you posted.
Thanks
Raghu
Stephanie Mayfield wrote:
I have a very simple script that attempts to log into a website. I'm
trying to use WET as well as I have windows popups to test later on.
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
--
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