from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
# assert "Python" in driver.title
list1 = ['王涛', '涂许平', '汪文']
for i in list1:
    elem = driver.find_element_by_id("kw")
    elem.clear()
    elem.send_keys(i)
    elem.send_keys(Keys.RETURN)
    time.sleep(2)
# assert "No results found." not in driver.page_source
# driver.close()
006a2493924a5b2fc351fee56102d417d6b84f31
<mask token>

<mask token>
driver.get('http://www.baidu.com')
<mask token>
for i in list1:
    elem = driver.find_element_by_id('kw')
    elem.clear()
    elem.send_keys(i)
    elem.send_keys(Keys.RETURN)
    time.sleep(2)

<mask token>
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
list1 = ['王涛', '涂许平', '汪文']
for i in list1:
    elem = driver.find_element_by_id('kw')
    elem.clear()
    elem.send_keys(i)
    elem.send_keys(Keys.RETURN)
    time.sleep(2)

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
list1 = ['王涛', '涂许平', '汪文']
for i in list1:
    elem = driver.find_element_by_id('kw')
    elem.clear()
    elem.send_keys(i)
    elem.send_keys(Keys.RETURN)
    time.sleep(2)

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
# assert "Python" in driver.title
list1 = ['王涛', '涂许平', '汪文']
for i in list1:
    elem = driver.find_element_by_id("kw")
    elem.clear()
    elem.send_keys(i)
    elem.send_keys(Keys.RETURN)
    time.sleep(2)
# assert "No results found." not in driver.page_source
# driver.close()