gpt4 book ai didi

python - Chrome 使用 selenium chromedriver 以 “Data;” 打开

转载 作者:太空狗 更新时间:2023-10-30 01:36:16 26 4
gpt4 key购买 nike

尝试通过 python 中的 selenium chrome 驱动程序从 Chrome 打开“Google”或任何其他页面(网站)。

代码是:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
import time

driver = webdriver.Chrome()
driver.get('https://google.com')

但是,这会打开我的 chrome 窗口,其中包含指定的链接和“数据”;标签。

enter image description here

为什么是数据;选项卡打开?如何解决?

使用最新版本的 Chrome 和 Chromedriver

最佳答案

你不需要那么多的模块,只需要删除所有那些除了:从 Selenium 导入 webdriver

再试一次,您将不会得到另一个包含 congaing 数据的标签。

关于python - Chrome 使用 selenium chromedriver 以 “Data;” 打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52243080/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com