On Wed, 4 Apr 2007, aidy wrote: > Hi, > > Could I do something like this? > > $ie = Watir::IE.new > $ie.goto('www.updatelog.com') > class ObjectMap > def self.login() > username = $ie.text_field(:name, 'user_name') > end > end if you're a fan of debugging code with lots of global variables - sure. > class A_Test < ObjectMap > > login.username.set('aidy') > end > > I am not so sure why you have used a self prefix before the login > method. it's a class method. -a -- be kind whenever possible... it is always possible. - the dalai lama