Sha256: d2fdd49126e64d7d6dbbedc4696fca5ec296138a46659cead603c9556d142392

Contents?: true

Size: 875 Bytes

Versions: 6

Compression:

Stored size: 875 Bytes

Contents

module Login2

  def run

    if @xls_path

      get_variables(@xls_path, :userid)

      login_url = "https://accounts.zoho.com/login?serviceurl=https://www.zoho.com/&hide_signup=true&css=https://www.zoho.com/css/login.css"

      browser = open_browser

      @login.each_key do |key|
        if @login[key]['enabled'] == 'Y'
          userid    = key
          password  = @login[key]['password']
          name      = @login[key][name]

          go_to_url(browser, login_url)
          set_textfield(browser, :name, 'lid', userid)
          set_textfield(browser, :name, 'pwd', password)
          click(browser, :button, :value, 'Sign In')
          go_to_url(browser, 'https://crm.zoho.com/crm/ShowHomePage.do')
          validate_text(browser, "Welcome #{name} at Software")
          click_link(browser, :text, 'sign out')

        end
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
awetestlib-0.1.28 test/login_2.rb
awetestlib-0.1.27 test/login_2.rb
awetestlib-0.1.26 test/login_2.rb
awetestlib-0.1.25 test/login_2.rb
awetestlib-0.1.24 test/login_2.rb
awetestlib-0.1.23 test/login_2.rb