【发布时间】:2023-03-05 05:22:01
【问题描述】:
我使用 selenium webdriver 从 URL 获取一些内容,但我发现了以下错误: This picture show the dropdown list, I got the url content through the real browser
This picture not show the dropdown list, I got the url content through the selenium webdriver
我不知道为什么,请帮助我。非常感谢。 这是我的代码:
driver = webdriver.Chrome() driver.get("myurl")
【问题讨论】:
-
原因是因为,selenium 驱动程序每次启动浏览器时都会使用新的配置文件(此配置文件未与您的任何其他帐户(如 gmail 或 fb)链接)但在实际浏览器中,它会与一些链接类型的帐户,基于此,我们看到的广告或类似的东西可能会有所不同。
-
@santhosh kumar 谢谢。有什么解决办法吗?
标签: selenium selenium-webdriver