input: Write a function to create a webscraper using Python’s Selenium that retrieves data from an online store. The function should open a new Firefox session, navigate to the application home page of the store, perform a search for "shoes", and then print the text of each product displayed on the result page. The function should close the browser window after the task is completed.
  from selenium import webdriver
  
  def scrape_online_store():
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
  
      driver.get("https://www.example.com/")
  
      search_field = driver.find_element_by_name("q")
      search_field.clear()
  
      search_field.send_keys("shoes")
      search_field.submit()
  
      product_list = driver.find_elements_by_class_name("product")
  
      for product in product_list:
          print(product.text)
  
      driver.quit()
  
  assert scrape_online_store() is None
output: 
  def scrape_online_store():
      driver = webdriver.Firefox()
      driver.implicitly_wait(30)
      driver.maximize_window()
  
      driver.get("https://www.example.com/")
  
      search_field = driver.find_element_by_name("q")
      search_field.clear()
  
      search_field.send_keys("shoes")
      search_field.submit()
  
      product_list = driver.find_elements_by_class_name("product")
  
      for product in product_list:
          print(product.text)
  
      driver.quit()
  