Chrome opens with “Data;” with selenium chromedriver(Chrome 打开时显示“数据;带硒铬驱动器)
问题描述
尝试打开
为什么是数据;标签打开?如何解决?
使用最新版本的 Chrome 和 Chromedriver
我不确定是不是同样的问题,但前段时间我做了一个 exe 脚本在另一台 PC 和其中一台 PC 上运行 selenium不适用于 Chrome.
这是我发布的问题,但答案对我没有帮助,希望它对你有用:Chromedriver 不打开新会话,它会在现有会话中打开一个新标签
如果它不起作用,我做了一个解决方法,使用 Firefox 而不是 Chrome 运行,以确保它能够正常工作.
Trying to open "Google" or any other page (website) from Chrome via selenium chrome driver in python.
The code is :
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')
However, this opens my chrome window with the specified link and "data;" tab.
Why that data; tab opens? How to fix it?
Using latest versions of Chrome and Chromedriver
I'm not sure if its the same problem, but some time ago I made an exe script to run in another PCs and in one of the PCs selenium just didn't worked with Chrome.
This is the question I posted, but the answers didn't help me, hope it works with you: Chromedriver do not open a new session, it opens a new tab in a existing session
If it doesn't work, I made a workaround to run with Firefox instead of Chrome to ensure it would work properly.
这篇关于Chrome 打开时显示“数据;"带硒铬驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Chrome 打开时显示“数据;"带硒铬驱动器


- 我如何卸载 PyTorch? 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01