問題描述
嘗試打開
為什么是數據;標簽打開?如何解決?
使用最新版本的 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 打開時顯示“數據;"帶硒鉻驅動器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!