On Tue, Sep 14, 2010 at 12:12 PM, Usman Hussain <usmanhhuss...@gmail.com> wrote: > if i put @browser#quit it again wont work.
Jari said you should take a look at Browser#quit. It is a way to reference method of a class (in Ruby). It is not executable code. That means "quit" method in "Browser" class. Take a look: http://github.com/jarib/watir-webdriver/blob/master/lib/watir-webdriver/browser.rb#LC87 If variable "firefox" is pointing to the object that is an instance of Browser class, you would call "quit" method like this: firefox.quit Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com