Sha256: cb2a29baf731ace5c18c36d5aecc8dc1f1a9a3dbef564fd3113b8142a9c1974c

Contents?: true

Size: 907 Bytes

Versions: 22

Compression:

Stored size: 907 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

22 entries across 22 versions & 1 rubygems

Version Path
awetestlib-1.2.4-x86-mingw32 test/login_2.rb
awetestlib-0.1.30 test/login_2.rb
awetestlib-0.1.30-x86-mingw32 test/login_2.rb
awetestlib-0.1.30pre3 test/login_2.rb
awetestlib-0.1.30pre3-x86-mingw32 test/login_2.rb
awetestlib-0.1.30pre2 test/login_2.rb
awetestlib-0.1.30pre2-x86-mingw32 test/login_2.rb
awetestlib-0.1.30pre1-x86-mingw32 test/login_2.rb
awetestlib-0.1.30pre1 test/login_2.rb
awetestlib-0.1.29 test/login_2.rb
awetestlib-0.1.29-x86-mingw32 test/login_2.rb
awetestlib-0.1.29pre4 test/login_2.rb
awetestlib-0.1.29pre4-x86-mingw32 test/login_2.rb
awetestlib-0.1.29pre3-x86-mingw32 test/login_2.rb
awetestlib-0.1.29pre3 test/login_2.rb
awetestlib-0.1.29pre1 test/login_2.rb
awetestlib-0.1.28-x86-mingw32 test/login_2.rb
awetestlib-0.1.27-x86-mingw32 test/login_2.rb
awetestlib-0.1.26-x86-mingw32 test/login_2.rb
awetestlib-0.1.25-x86-mingw32 test/login_2.rb