input: Write a function to scrape product names from an online store using Python’s Selenium. The function should initialize a Selenium webdriver, navigate to the store's homepage, search for a specific keyword, retrieve and print the names of all displayed products on the search result page. If no products are found, it should print a message indicating no products were found.
  assert scrape_product_names("https://www.example.com/", "shoes")==["Running Shoes", "Casual Shoes", "Formal Shoes"]
  assert scrape_product_names("https://www.example.com/", "t-shirts")==["Cotton T-shirt", "Polo T-shirt"]
  assert scrape_product_names("https://www.example.com/", "invalidproduct")=="No products found"
output: def scrape_product_names(url, keyword):
      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(keyword)
      search_box.send_keys(Keys.RETURN)
      
      time.sleep(2)
      
      try:
          products = driver.find_elements(By.CLASS_NAME, "product-name")
          if not products:
              return "No products found"
          product_names = [product.text for product in products]
          return product_names
      finally:
          driver.quit()