Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Selenium web驱动程序未加载自动建议_Python_Selenium_Selenium Chromedriver - Fatal编程技术网

Python Selenium web驱动程序未加载自动建议

Python Selenium web驱动程序未加载自动建议,python,selenium,selenium-chromedriver,Python,Selenium,Selenium Chromedriver,通过selenium webdriver(chrome windows)加载此网站时,搜索栏现在将显示自动建议。 这种行为可以在selenium会话中重现,即使手动点击,只要在正常的chrome会话中,自动建议显示没有问题 屏幕截图硒铬 普通铬合金屏幕截图 这是网站的问题还是SeleniumWebDriver的呈现导致的? 我一直认为webdriver应该与常规chrome具有相同的渲染效果 我正在尝试网页抓取自动完成,但它甚至没有显示在HTML文件中 from selenium impo

通过selenium webdriver(chrome windows)加载此网站时,搜索栏现在将显示自动建议。

这种行为可以在selenium会话中重现,即使手动点击,只要在正常的chrome会话中,自动建议显示没有问题

屏幕截图硒铬

普通铬合金屏幕截图

这是网站的问题还是SeleniumWebDriver的呈现导致的? 我一直认为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')

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

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