Vinny V.
2012-Feb-14 13:01 UTC
undefined method `assert'' error appears while running the code
Hi, I am new to ruby and I am using ruby with selenium. I want to apply some validations for login section. Following is the code on which I am getting error. @selenium.click "id=loginCloseButton" @selenium.click "css=#lnkLogin > span" @selenium.click "//button[@id='''']" begin assert @selenium.is_text_present("* Please provide your email address") rescue Test::Unit::AssertionFailedError @verification_errors << $! end I am getting following error while running the code: undefined method `assert'' for #<Object:0x298f9e8> (NoMethodError) Please help me to resolve this issue or tell me any other commands for that. Thanks in advance. Attachments: http://www.ruby-forum.com/attachment/7056/code.png -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.