input: Write a function to create a web scraper using Python’s Selenium that retrieves data from an online store. The function should navigate to the home page of the store, search for a specific keyword, and print the names of the products found after the search. If the search field or the product list is not found, the function should handle the exception gracefully. If no products are found, it should print "No products found." If no search field is found, it should print "Search field not found."
  
  from selenium import webdriver
  
  def scrape_store(url, keyword):
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
      driver.get(url)
      
      try:
          search_field = driver.find_element_by_name("q")
          search_field.clear()
          search_field.send_keys(keyword)
          search_field.submit()
      except:
          print("Search field not found.")
          driver.quit()
          return
  
      try:
          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.")
      except:
          print("Product list not found.")
      
      driver.quit()
  
  assert scrape_store("https://www.example.com/", "shoes")==None
  assert scrape_store("https://www.example.com/", "")==None
  assert scrape_store("https://www.example.com/", "nonexistent")==None
  assert scrape_store("", "shoes")==None
  assert scrape_store("https://www.example.com/", "adidas")==None
output: 
  def scrape_store(url, keyword):
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
      driver.get(url)
      
      try:
          search_field = driver.find_element_by_name("q")
          search_field.clear()
          search_field.send_keys(keyword)
          search_field.submit()
      except:
          print("Search field not found.")
          driver.quit()
          return
  
      try:
          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.")
      except:
          print("Product list not found.")
      
      driver.quit()
  