class Hola def self.hi(language) translator = Translator.new(language) translator.hi end end require 'hola/translator' require 'capybara' require 'capybara/dsl' def login_user username , password visit "https://login.salesforce.com" fill_in "username", with: username fill_in "password", with: password click_button "Login" end