问题描述
尝试打开
为什么是数据;标签打开?如何解决?
使用最新版本的 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 打开时显示“数据;"带硒铬驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!