input: Write a function to create a Selenium script in Python to automate the login process in a given website. The function should initialize a web driver, navigate to the target website, locate and fill in the username and password fields, submit the form, and print a success message after a delay if the login process is successful.
  
  def automate_login(target_website, username, password):
      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(target_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)
  
      # Login successful
      print('Login successful!')
  
      driver.close()
  
  assert automate_login('http://www.example.com', 'correctUsername', 'correctPassword') == None
  assert automate_login('http://www.example.com', 'wrongUsername', 'wrongPassword') == None
output: def automate_login(target_website, username, password):
      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys
      import time
  
      driver = webdriver.Chrome()
      driver.get(target_website)
      username_field = driver.find_element_by_name('username')
      username_field.send_keys(username)
      password_field = driver.find_element_by_name('password')
      password_field.send_keys(password)
      submit_button = driver.find_element_by_name('submit')
      submit_button.click()
      time.sleep(5)
      print('Login successful!')
      driver.close()