Ejemplo n.º 1
0
def test(args):
  #setup
  driver = args['driver']
  program_url = args['url']
  data = args['data']
  os = args['os']

  landing_page = LandingPage(driver, 'Login Page', program_url, os)
  landing_page.login(data)

  #test
  all_pages = landing_page.get_all_pages_from_navbar()
  
  for page in all_pages:
    page.navigate_to()
    data.auto_fill(page)
    page.save_and_continue()

  recommendations = landing_page.navigate_to('Recommendations')
  #needs two recommendations for a complete application
  data.auto_fill(recommendations)
  data.auto_fill(recommendations)
  recommendations.save_and_continue()

  preview_page = landing_page.preview_application()
  preview_page.continue_to_page()
  data.auto_fill(preview_page)
  preview_page.submit()
  preview_page.submit_with_offline_payment()
  preview_page.verify_application_submitted()
Ejemplo n.º 2
0
def test(args):
    #setup
    driver = args['driver']
    program_url = args['url']
    data = args['data']
    os = args['os']

    landing_page = LandingPage(driver, 'Login Page', program_url, os)
    landing_page.login(data)

    #test
    preview_page = landing_page.preview_application()
    preview_page.continue_to_page()
    data.auto_fill(preview_page)
    preview_page.submit()
    preview_page.confirm_submit(data)
    preview_page.verify_application_submitted()
Ejemplo n.º 3
0
def test(args):
  #setup
  driver = args['driver']
  program_url = args['url']
  data = args['data']
  os = args['os']
  
  landing_page = LandingPage(driver, 'Login Page', program_url, os)
  data.create_random_username()
  
  #test
  landing_page.start_new_app(data)

  email_page = landing_page.navigate_to('Email')
  email_page.sign_in_to_gmail(data)
  email_page.check_for_and_click_email_verification_link(data)
  email_page.switch_to_newest_window()
  
  landing_page.set_password(data)

  all_pages = landing_page.get_all_pages_from_navbar()
  
  for page in all_pages:
    page.navigate_to()
    data.auto_fill(page)
    page.save_and_continue()

  recommendations = landing_page.navigate_to('Recommendations')
  #needs two recommendations for a complete application
  data.auto_fill(recommendations)
  data.auto_fill(recommendations)
  recommendations.save_and_continue()

  landing_page.is_complete(data, all_pages)

  preview_page = landing_page.preview_application()
  preview_page.continue_to_page()
  data.auto_fill(preview_page)
  preview_page.submit()
  preview_page.confirm_submit(data)
  preview_page.verify_application_submitted()