from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
#打开的网址一般是get请求
driver.get("http://www.shopxo.com/shopxo/index.php")
#搜索框输入”手机“
driver.find_element(By.ID, 'search-input').send_keys('衣服')
#点击搜索按钮
driver.find_element(By.ID, "ai-topsearch").click()
input("press any key to continue...")
#最后空输入任意字符关闭
driver.quit()