input: from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  
  def login_website(url: str, username_text: str, password_text: str) -> str:
      """Automates the process of logging into a given website using Selenium.
      It initializes the web driver, navigates to the provided URL, enters the username
      and password, clicks the submit button, and waits for the login to complete. If
      the login process is successful, it returns a string indicating success.
      >>> login_website('http://www.example.com', 'username', 'password')
      'Login successful!'
      """
  
      # Initialize web driver
      driver = webdriver.Chrome()
  
      # Navigate to the target web page
      driver.get(url)
  
      # Locate username field
      username = driver.find_element_by_name('username')
  
      # Enter username
      username.send_keys(username_text)
  
      # Locate password field
      password = driver.find_element_by_name('password')
  
      # Enter password
      password.send_keys(password_text)
  
      # 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
      login_message = 'Login successful!'
  
      driver.close()
  
      return login_message
output:     # Check if login was successful
      if "login_success" in driver.current_url:
          driver.close()
          return login_message
      else:
          driver.close()
          return "Login failed!"