input: Write a function to create a web scraper in Python using Selenium, which retrieves product data from an online store. The function should return a list of product names after performing a search on the specified website. If no products are found, the function should return an empty list.
  assert web_scraper("https://www.example.com/", "shoes") == ["Running Shoes", "Casual Shoes", "Formal Shoes"]
  assert web_scraper("https://www.example.com/", "shirts") == ["Plain Shirt", "Patterned Shirt", "T-Shirt"]
  assert web_scraper("https://www.example.com/", "pants") == []
  assert web_scraper("https://www.example.com/", "hats") == ["Cap", "Sun Hat", "Beanie"]
output: def web_scraper(url, search_term):
      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.common.keys import Keys
      import time
  
      driver = webdriver.Chrome()
      driver.get(url)
      
      search_box = driver.find_element(By.NAME, "q")
      search_box.send_keys(search_term)
      search_box.send_keys(Keys.RETURN)
      
      time.sleep(2)
      
      product_names = []
      try:
          products = driver.find_elements(By.CLASS_NAME, "product-name")
          for product in products:
              product_names.append(product.text)
      except:
          pass
      
      driver.quit()
      return product_names