想去拉钩做一个自动检索
但是在进入到搜索页面,点击搜索结果时;发现直接用.click()无效;应该时被加了一层覆盖阻挡了,求解
问题截图:
代码页
from selenium.webdriver import Chrome
import time
from selenium.webdriver.common.keys import Keys
web=Chrome()
web.get('http://lagou.com')
#点击关闭弹出来的地域选项
web.find_element_by_xpath('//*[@id="cboxClose"]').click()
time.sleep(1)
#输入搜索内容
web.find_element_by_xpath('//*[@id="search_input"]').send_keys('电商运营',Keys.ENTER)
time.sleep(1)
#点击搜索界面中的结果,打开新窗口
web.find_element_by_xpath('//*[@id="s_position_list"]/ul/li[1]/div[1]/div[1]/div[1]/a/h3').click()