input: 
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  
  def automate_login(website: str, username: str, password: str) -> bool:
      """
      Automate the login process on a given website using Selenium.
      >>> automate_login('http://www.example.com', 'user123', 'pass123')
      True
      >>> automate_login('http://www.nonexistentwebsite.com', 'user123', 'pass123')
      AssertionError
      """
      try:
          # Initialize web driver
          driver = webdriver.Chrome()
  
          # Navigate to the target web page
          driver.get(website)
  
          # Locate username field
          username_field = driver.find_element_by_name('username')
  
          # Enter username
          username_field.send_keys(username)
  
          # Locate password field
          password_field = driver.find_element_by_name('password')
  
          # Enter password
          password_field.send_keys(password)
  
          # 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)
  
          # Check if login was successful
          assert "Login successful!" in driver.page_source
  
      except Exception as e:
          print(f"An error occurred: {e}")
          return False
  
      finally:
          driver.close()
  
      return True
  
output:     except Exception as e:
          print(f"An error occurred: {e}")
          return False
  
      finally:
          driver.close()
  
      return True