selenium--数据填充

from time import sleep
from selenium import webdriver

br = webdriver.Chrome()

url = "https://www.tmall.com"
br.get(url)

input = br.find_element_by_id("mq")
input.send_keys("iphone")
input.submit()
print(br.page_source)

sleep(3)
br.close()

 

posted @ 2020-03-11 17:21  brady-wang  阅读(628)  评论(0编辑  收藏  举报