input: from typing import List
  
  def automate_login(website: str, credentials: List[str]):
      """ Automates the login process in the given website using Selenium.
      Input website should be in the format 'www.example.com'. Credentials should
      be a list where the first element is the username and the second element
      is the password.
      >>> automate_login('www.example.com', ['testuser', 'testpass'])
      'Login successful!'
      """
      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys
      import time
  
      # Initialize web driver
      driver = webdriver.Chrome()
  
      # Navigate to the target web page
      driver.get('http://' + website)
  
      # Locate username field
      username = driver.find_element_by_name('username')
  
      # Enter username
      username.send_keys(credentials[0])
  
      # Locate password field
      password = driver.find_element_by_name('password')
  
      # Enter password
      password.send_keys(credentials[1])
  
      # Locate submit button
      submit_button = driver.find_element_by_name('submit')
  
      # Click submit button
      submit_button.click()
  
      # Wait for login process to complete
      time.sleep(5)
  
      # Login successful
      result = 'Login successful!'
      driver.close()
      return result
output:     # Check if login was successful
      try:
          driver.find_element_by_id('login_success')
      except:
          result = 'Login failed!'
      
      driver.quit()
      return result