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

2024-03-29 13:13:25 发布

您现在位置:Python中文网/ 问答频道 /正文

当通过SeleniumWebDriver(ChromeWindows)加载此网站时,搜索栏现在将显示自动建议。 https://www.avnet.com/wps/portal/us

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

屏幕截图硒铬 enter image description here

普通chrome屏幕截图 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')

Tags: fromhttpsimportcom屏幕网站wwwselenium
1条回答
网友
1楼 · 发布于 2024-03-29 13:13:25

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

在selenium控件浏览器执行F12时检查相同的URL,可以看到有一些403错误。似乎是某些身份验证问题或某些必需的值未传递当然。不过,我不是一个开发人员,并试图指出可能有帮助的区别。你知道吗

enter image description here

相关问题 更多 >