input: Write a function that generates a Selenium script in Python to automate the login process on a given website. The function should take the website URL, the username, and the password as arguments and return the complete Python code as a string. The script should include initializing the web driver, navigating to the target page, locating the username and password fields, entering the credentials, clicking the submit button, waiting for the login process to complete, and closing the driver.
  
  
  def generate_selenium_login_script(website_url, username_value, password_value):
      script = f'''
  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('{website_url}')
  
  # Locate username field
  username = driver.find_element_by_name('username')
  
  # Enter username
  username.send_keys('{username_value}')
  
  # Locate password field
  password = driver.find_element_by_name('password')
  
  # Enter password
  password.send_keys('{password_value}')
  
  # 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()
  '''
      return script
  
  assert generate_selenium_login_script('http://www.example.com', 'myusername', 'mypassword') == '''
  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('myusername')
  
  # Locate password field
  password = driver.find_element_by_name('password')
  
  # Enter password
  password.send_keys('mypassword')
  
  # 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 generate_selenium_login_script('http://www.testwebsite.com', 'testuser', 'testpass') == '''
  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.testwebsite.com')
  
  # Locate username field
  username = driver.find_element_by_name('username')
  
  # Enter username
  username.send_keys('testuser')
  
  # Locate password field
  password = driver.find_element_by_name('password')
  
  # Enter password
  password.send_keys('testpass')
  
  # 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()
  '''
output: def generate_selenium_login_script(website_url, username_value, password_value):
      script = f'''
  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('{website_url}')
  
  # Locate username field
  username = driver.find_element_by_name('username')
  
  # Enter username
  username.send_keys('{username_value}')
  
  # Locate password field
  password = driver.find_element_by_name('password')
  
  # Enter password
  password.send_keys('{password_value}')
  
  # 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()
  '''
      return script