input: Write a Python function to perform a search on a website using Selenium and print the names of products found. 
  assert perform_search("shoes") == ["Shoe1", "Shoe2", "Shoe3"]  # Replace with actual product names
  assert perform_search("bags") == ["Bag1", "Bag2", "Bag3"]  # Replace with actual product names
  assert perform_search("watches") == ["Watch1", "Watch2", "Watch3"]  # Replace with actual product names
output: def perform_search(query):
      from selenium import webdriver
      from selenium.webdriver.common.keys import Keys
      from selenium.webdriver.common.by import By
      import time
  
      # Initialize the webdriver
      driver = webdriver.Chrome()
  
      # Open the website
      driver.get("http://example.com")  # Replace with the actual URL of the website
  
      # Find the search box element and enter the query
      search_box = driver.find_element(By.NAME, "search")  # Replace with the actual name or other locator of the search box
      search_box.send_keys(query)
      search_box.send_keys(Keys.RETURN)
  
      # Wait for the results to load
      time.sleep(2)  # Adjust the sleep time if necessary
  
      # Find the product elements
      products = driver.find_elements(By.CLASS_NAME, "product-name")  # Replace with the actual class name or other locator of the product elements
  
      # Extract the names of the products
      product_names = [product.text for product in products]
  
      # Close the driver
      driver.quit()
  
      return product_names