input: Write a function to create a webscraper using Python's Selenium that retrieves data from an online store by performing a search for a specific product and printing the names of the products listed in the search results. The function should handle the initialization of the browser, navigation to the store's homepage, entering the search keyword, submitting the search, and finally iterating through and printing the names of the products. Use the appropriate Selenium methods to achieve this.
  from selenium import webdriver
  
  def scrape_online_store(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("https://www.example.com/")
  
      # 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()
  
  assert scrape_online_store("shoes")  # Output will be the names of shoes listed in the search results on example.com
  assert scrape_online_store("watches")  # Output will be the names of watches listed in the search results on example.com
output: def scrape_online_store(search_keyword):
      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(search_keyword)
      search_field.submit()
      product_list = driver.find_elements_by_class_name("product")
      for product in product_list:
          print(product.text)
      driver.quit()