input: Write a function to automate the login process on the website using Selenium within a Python script. The function should initialize the web driver, navigate to the target website, locate and input the username and password, click the submit button, wait for the login process to complete, print a success message, and finally close the webdriver. 
  
  Create a Selenium script in Python to automate the login process in a given website.
  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://www.example.com')
  
  # Locate username field
  username = driver.find_element_by_name('username')
  
  # Enter username
  username.send_keys('username')
  
  # Locate password field
  password = driver.find_element_by_name('password')
  
  # Enter password
  password.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)
  
  # Login successful
  print('Login successful!')
  
  driver.close()
  
  assert auto_login_example('http://www.example.com', 'username', 'password') == 'Login successful!'
output: def auto_login_example(url, username_input, password_input):
      driver = webdriver.Chrome()
      driver.get(url)
      username = driver.find_element_by_name('username')
      username.send_keys(username_input)
      password = driver.find_element_by_name('password')
      password.send_keys(password_input)
      submit_button = driver.find_element_by_name('submit')
      submit_button.click()
      time.sleep(5)
      print('Login successful!')
      driver.close()