input: Write a function to create a web scraper using Python's Selenium that retrieves data from an online store. The function should navigate to the application home page, search for a keyword, and print the names of the products listed after the search. If the online store's URL or the search keyword are not provided, the function should return an error message.
  assert create_web_scraper("https://www.example.com/", "shoes") == "Product names printed."
  assert create_web_scraper("", "shoes") == "Error: URL not provided."
  assert create_web_scraper("https://www.example.com/", "") == "Error: Search keyword not provided."
  assert create_web_scraper("", "") == "Error: URL and search keyword not provided."
output: def create_web_scraper(url, keyword):
      if not url and not keyword:
          return "Error: URL and search keyword not provided."
      if not url:
          return "Error: URL not provided."
      if not keyword:
          return "Error: Search keyword not provided."
      
      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.common.keys import Keys
  
      driver = webdriver.Chrome()
      driver.get(url)
      
      search_box = driver.find_element(By.NAME, "q")
      search_box.send_keys(keyword)
      search_box.send_keys(Keys.RETURN)
      
      products = driver.find_elements(By.CLASS_NAME, "product-name")
      for product in products:
          print(product.text)
      
      driver.quit()
      return "Product names printed."