macOS - 使用 chromedriver

文章目录

    • [下载对应的 chromedriver](#下载对应的 chromedriver)

下载 Chrome

https://www.google.com/chrome/


查看 版本


下载对应的 chromedriver

http://chromedriver.storage.googleapis.com/index.html
https://chromedriver.chromium.org/downloads


移动

shell 复制代码
sudo mv chromedriver /usr/local/bin/ 

shell 复制代码
$ chromedriver --version
ChromeDriver 114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052})

$ chromedriver -h
Usage: chromedriver [OPTIONS]

Options
  --port=PORT                     port to listen on
  --adb-port=PORT                 adb server port
  --log-path=FILE                 write server log to file instead of stderr, increases log level to INFO
  --log-level=LEVEL               set log level: ALL, DEBUG, INFO, WARNING, SEVERE, OFF
  --verbose                       log verbosely (equivalent to --log-level=ALL)
  --silent                        log nothing (equivalent to --log-level=OFF)
  --append-log                    append log file instead of rewriting
  --replayable                    (experimental) log verbosely and don't truncate long strings so that the log can be replayed.
  --version                       print the version number and exit
  --url-base                      base URL path prefix for commands, e.g. wd/url
  --readable-timestamp            add readable timestamps to log
  --enable-chrome-logs            show logs from the browser (overrides other logging options)
  --bidi-mapper-path              custom bidi mapper path
  --allowed-ips=LIST              comma-separated allowlist of remote IP addresses which are allowed to connect to ChromeDriver
  --allowed-origins=LIST          comma-separated allowlist of request origins which are allowed to connect to ChromeDriver. Using `*` to allow any host origin is dangerous!

小发现

在低版本的 chromedriver ,如 90.x 上,使用 selenium,a 标签不可 click;在 99.x 就可以。


伊织 2023-09-28 (四)

放假了,没人看博客了

相关推荐
炫彩@之星31 分钟前
Chrome书签的导出与导入:步骤图
前端·chrome
李三岁_foucsli2 小时前
js中消息队列和事件循环到底是怎么个事,宏任务和微任务还存在吗?
前端·chrome
ItisNagatoYuki3 小时前
Mac M芯片 RAG 极简流程 安装 ragflow + LM studio
macos
云攀登者-望正茂7 小时前
如何在mac上安装podman
macos·podman
Hacker_seagull11 小时前
Chrome安装代理插件ZeroOmega(保姆级别)
前端·chrome
代码的乐趣11 小时前
支持selenium的chrome driver更新到137.0.7151.68
chrome·selenium·测试工具
江梦寻13 小时前
MacOS下Homebrew国内镜像加速指南(2025最新国内镜像加速)
开发语言·后端·python·macos·架构·策略模式
*Lisen13 小时前
重新安装解决mac vscode点击不能跳转问题
ide·vscode·macos
weixin_3875456420 小时前
如何把 Mac Finder 用得更顺手?——高效文件管理定制指南
macos
itme2681 天前
解决cocos 2dx/creator2.4在ios18下openURL无法调用的问题
macos·objective-c·cocoa