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


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.

Thanks

Aidy