简体   繁体   English

Selenium 用于 Python 打开带有“数据”而不是指定 URL 的 chrome 选项卡

[英]Selenium for Python opens chrome tab with "data" rather than specified URL

My chromedriver and chrome app are the same up to date version, but the tab still just opens to "data" in the URL bar我的 chromedriver 和 chrome 应用程序是相同的最新版本,但选项卡仍然只打开到 URL 栏中的“数据”

driver = webdriver.Chrome(executable_path="C:\\Windows\\chromedriver.exe")

driver.get("https://google.com")

Driver instance can be simply驱动实例可以很简单

driver = webdriver.Chrome(r'path\to\chromedriver.exe') driver = webdriver.Chrome(r'path\to\chromedriver.exe')

Is chrome and driver at last version? chrome和驱动程序是最新版本吗?

sintax is ok,try change crhomedriver path to sintax 没问题,尝试将 crhomedriver 路径更改为

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python chrome 打开时显示“数据;” 与 selenium - Python chrome opens with “Data;” with selenium Chrome 打开时显示“数据;” 与 selenium chromedriver - Chrome opens with “Data;” with selenium chromedriver Chrome / Firefox在新标签页中打开PDF,并且不会以无头模式保存它(Selenium + Python) - Chrome/Firefox opens PDF in new tab and does not save it in headless mode (Selenium+Python) Selenium不会在新标签页(Python和Chrome)中打开新的URL - Selenium won't open a new URL in a new tab (Python & Chrome) Selenium webdriver没有打开正确的url,而是打开一个空白页 - Selenium webdriver does not open the correct url, rather it opens a blank page Python:Selenium Chrome 驱动程序打开空白页 - Python: Selenium Chrome Driver opens blank page "<i>Selenium Python code that used to work now opens browser and then gets stuck in &quot;data:,&quot;.<\/i>以前可以工作的 Selenium Python 代码现在打开浏览器,然后卡在“data:”中。<\/b> <i>Says &quot;chrome not reachable&quot;<\/i>说“铬无法访问”<\/b>" - Selenium Python code that used to work now opens browser and then gets stuck in "data:,". Says "chrome not reachable" Selenium 将打开 chrome 标签但找不到 URL - Selenium will open chrome tab but not find URL 在 Python 中获取 Chrome 标签 URL - Get Chrome tab URL in Python SELENIUM(Python):如何在单击后检索元素将我重定向到(打开新选项卡)的 URL? 元素有<a>标签但没有 href</a> - SELENIUM (Python) : How to retrieve the URL to which an element redirects me to (opens a new tab) after clicking? Element has <a> tag but no href
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM