#Hi
#Is it possible to instantiate a class that inherits from Test::Unit

require 'test\unit'
class Login < Test::Unit::TestCase

  def username;$ie.text_field(:name, 'username');end
  def password;$ie.text_field(:name, 'password');end
  def sign_in;$ie.button(:alt, /Log in/);end

  def check_main_screen_objects
    assert(self.username.exists?)
    assert(self.password.exists?)
    assert(self.sign_in.exists?)
  end
        
end

login = Login.new
login.check_main_screen_objects


#if not how can I get round this?

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

Reply via email to