input: Write a function to create a web scraper using Selenium to retrieve data from an online store. The function should open a Firefox browser, navigate to a specified URL, search for a specific keyword, and then print the names of the products that match the search. The function should close the browser after completing the task.
  
  from selenium import webdriver
  
  def scrape_online_store(url, keyword):
      # create a new Firefox session
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
  
      # navigate to the specified URL
      driver.get(url)
  
      # get the search textbox and clear any existing text
      search_field = driver.find_element_by_name("q")
      search_field.clear()
  
      # enter the search keyword and submit
      search_field.send_keys(keyword)
      search_field.submit()
  
      # get the list of product elements displayed after the search
      product_list = driver.find_elements_by_class_name("product")
  
      # iterate through each product and print its name
      for product in product_list:
          print(product.text)
  
      # close the browser window
      driver.quit()
  
  # Test cases
  assert scrape_online_store("https://www.example.com/", "shoes") != None
  assert scrape_online_store("https://www.example.com/", "shirts") != None
  assert scrape_online_store("https://www.example.com/", "electronics") != None
  assert scrape_online_store("https://www.example.com/", "toys") != None
  assert scrape_online_store("https://www.example.com/", "books") != None
output: def scrape_online_store(url, 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(keyword)
      search_field.submit()
      product_list = driver.find_elements_by_class_name("product")
      for product in product_list:
          print(product.text)
      driver.quit()