input: Write a function to automate the login process in a given website using Selenium in Python. The function should initialize a web driver, navigate to the target website, locate and fill in the username and password fields, click the submit button, and print a success message upon successful login. If the given website URL is empty, the function should return False.
  assert automate_login('http://www.example.com')==True
  assert automate_login('')==False
  assert automate_login('http://www.non-existent-website.com')==False
  assert automate_login('http://www.example.com/login')==True
  assert automate_login('http://www.example.com/signin')==True
output: def automate_login(url):
      if not url:
          return False
      try:
          driver = webdriver.Chrome()
          driver.get(url)
          username = driver.find_element_by_name('username')
          password = driver.find_element_by_name('password')
          submit_button = driver.find_element_by_name('submit')
          username.send_keys('your_username')
          password.send_keys('your_password')
          submit_button.click()
          print("Login successful")
          driver.quit()
          return True
      except Exception as e:
          print(f"Login failed: {e}")
          driver.quit()
          return False