input: Write a function that creates a web scraper using Python’s Selenium to retrieve product names from an online store. The function should initialize a Firefox session, navigate to the specified online store's URL, search for a specified keyword, retrieve the list of displayed products after the search, and print their names. Finally, the function should close the browser window.
  
  from selenium import webdriver
  
  def scrape_product_names(url, search_keyword):
      # create a new Firefox session
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
  
      # navigate to the application home page
      driver.get(url)
  
      # get the search textbox
      search_field = driver.find_element_by_name("q")
      search_field.clear()
  
      # enter search keyword and submit
      search_field.send_keys(search_keyword)
      search_field.submit()
  
      # get the list of elements which are displayed after the search
      # currently on result page using find_elements_by_class_name
      product_list = driver.find_elements_by_class_name("product")
  
      # iterate through each element and print the text that is
      # name of the product
      for product in product_list:
          print(product.text)
  
      # close the browser window
      driver.quit()
  
  # Example usage
  scrape_product_names("https://www.example.com/", "shoes")
  
  # Test cases
  # No specific assert statements are provided as the function directly prints the results.
output: 
  def scrape_product_names(url, search_keyword):
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
      driver.get(url)
      search_field = driver.find_element_by_name("q")
      search_field.clear()
      search_field.send_keys(search_keyword)
      search_field.submit()
      product_list = driver.find_elements_by_class_name("product")
      for product in product_list:
          print(product.text)
      driver.quit()
  