input: Write a function to create a web scraper using Python’s Selenium that retrieves the names of products from an online store. The function should initialize a Selenium webdriver, navigate to a specified URL, search for a given keyword, and print the names of all products displayed in the search results. If no products are found, the function should print "No products found."
  from selenium import webdriver
  
  def scrape_product_names(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
      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")
  
      # check if any products are found
      if product_list:
          # iterate through each element and print the text that is the name of the product
          for product in product_list:
              print(product.text)
      else:
          print("No products found.")
  
      # close the browser window
      driver.quit()
  
  assert scrape_product_names("https://www.example.com/", "shoes") == None
  assert scrape_product_names("https://www.example.com/", "non-existent-product") == "No products found."
output: 
  def scrape_product_names(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")
      if product_list:
          for product in product_list:
              print(product.text)
      else:
          print("No products found.")
      driver.quit()
  