input: Write a function to automate the login process on a given website using Selenium in Python. The function should initialize a web driver, navigate to the specified website, enter the login credentials, submit the form, wait for the login process to complete, and print a success message if the login is successful.
  
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  
  def login_automation(website, username_str, password_str):
      # Initialize web driver
      driver = webdriver.Chrome()
  
      # Navigate to the target web page
      driver.get(website)
  
      # Locate username field
      username = driver.find_element_by_name('username')
  
      # Enter username
      username.send_keys(username_str)
  
      # Locate password field
      password = driver.find_element_by_name('password')
  
      # Enter password
      password.send_keys(password_str)
  
      # 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 login_automation('http://www.example.com', 'username', 'password') == None
  assert login_automation('http://www.anotherwebsite.com', 'myuser', 'mypass') == None
output: def login_automation(website, username_str, password_str):
      driver = webdriver.Chrome()
      driver.get(website)
      username = driver.find_element_by_name('username')
      username.send_keys(username_str)
      password = driver.find_element_by_name('password')
      password.send_keys(password_str)
      submit_button = driver.find_element_by_name('submit')
      submit_button.click()
      time.sleep(5)
      print('Login successful!')
      driver.close()