Chrome打开时显示“数据;"含硒铬起子 [英] Chrome opens with “Data;” with selenium chromedriver

查看:61
本文介绍了Chrome打开时显示“数据;"含硒铬起子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试打开" Google "或通过python中的selenium chrome驱动程序从Chrome浏览器访问任何其他页面(网站).

Trying to open "Google" or any other page (website) from Chrome via selenium chrome driver in python.

代码是:

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窗口,其中包含指定的链接和"data;"标签.

However, this opens my chrome window with the specified link and "data;" tab.

使用最新版本的Chrome和Chromedriver

Using latest versions of Chrome and Chromedriver

推荐答案

您不需要太多的模块,只需删除以下所有内容即可: 从硒导入webdriver

You don't need as much module for this just remove all of those apart from: from selenium import webdriver

然后再试一次,您将不会再得到包含congaing数据的标签.

And try again you will not get another tab with congaing data.

这篇关于Chrome打开时显示“数据;"含硒铬起子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆