使用selenium在chrome打开网页报错

 时间:2026-02-15 08:39:29

1、下载chrome driver

chromedriver下载地址:https://sites.google.com/a/chromium.org/chromedriver/downloads

使用selenium在chrome打开网页报错

使用selenium在chrome打开网页报错

2、代码中手动设置chrome driver的路径:

from selenium import webdriver

import os

chromeDriver = "D:\...\chromedriver_win32\chromedriver.exe"

os.environ["webdriver.chrome.driver"] = chromeDriver

brower = webdriver.Chrome(chromeDriver)

brower.get("https://www.baidu.com")

  • 如何用新版word创建pdf文档
  • SQL Server配置管理器的重新启动
  • Navicat Premium如何新建mysql数据表
  • Cookie中有逗号如何处理 特殊字符处理办法
  • win10 apache无法启动?win10安装apache方法
  • 热门搜索
    哏怎么读 电脑怎么连蓝牙耳机 使命召唤战区怎么下载 王老吉和加多宝是怎么回事 工伤期间工资怎么算 医保卡丢了怎么挂失 百分比怎么算 鼻息肉怎么治疗 我的世界地图怎么用 博古特怎么了