Selenium web驱动程序没有加载自动建议

时间:2018-04-08 01:18:06

标签: python selenium selenium-chromedriver

通过selenium webdriver(镀铬窗口)加载此网站时,搜索栏现在将显示自动建议。 https://www.avnet.com/wps/portal/us

此行为可以在selenium会话中重现,即使手动点击也是如此,只要在正常的chrome会话中,自动建议就不会出现问题。

截图selenium chrome enter image description here

截图常规镀铬 enter image description here

这是网站的问题还是selenium webdriver的渲染引起的? 我一直认为webdriver与常规chrome一样呈现相同的渲染效果吗?

我正在尝试对自动完成进行网络抓取,但它甚至没有显示在HTML文件中。

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
executable_path=r'C:\chromedriver.exe')
driver.get('https://www.avnet.com/wps/portal/us')

1 个答案:

答案 0 :(得分:0)

我收到以下错误: - 已断开连接:无法连接到渲染器

在执行F12的selenium控制浏览器中检查相同的URL,您可以看到有403错误。似乎某些身份验证问题或某些必需值未正确传递。但是,我不是开发人员,并试图指出可能有所帮助的差异。

enter image description here

相关问题