input: Write a function to create a Selenium script in Python to automate the login process in a given website. The function should take a URL and user credentials as inputs, navigate to the website, enter the username and password, click the submit button, and check if the login was successful.
  assert login_automation('http://www.example.com', 'username', 'password')==True
  assert login_automation('http://www.anotherwebsite.com', 'testuser', 'testpass')==False
  assert login_automation('http://www.yetanotherwebsite.com', 'admin', 'adminpass')==True
  assert login_automation('http://www.dummywebsite.com', '', '')==False
  assert login_automation('', 'user', 'pass')==False
output: def login_automation(url, username, password):
      if not url or not username or not password:
          return False
      
      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.common.keys import Keys
      from selenium.webdriver.support.ui import WebDriverWait
      from selenium.webdriver.support import expected_conditions as EC
  
      driver = webdriver.Chrome()
      try:
          driver.get(url)
          
          username_field = WebDriverWait(driver, 10).until(
              EC.presence_of_element_located((By.NAME, 'username'))
          )
          password_field = WebDriverWait(driver, 10).until(
              EC.presence_of_element_located((By.NAME, 'password'))
          )
          
          username_field.send_keys(username)
          password_field.send_keys(password)
          
          submit_button = WebDriverWait(driver, 10).until(
              EC.element_to_be_clickable((By.NAME, 'submit'))
          )
          submit_button.click()
          
          success_message = WebDriverWait(driver, 10).until(
              EC.presence_of_element_located((By.ID, 'success_message'))
          )
          
          return success_message.text == 'Login Successful'
      except:
          return False
      finally:
          driver.quit()