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 (四)

放假了,没人看博客了

相关推荐
centor17 小时前
国际版 UnitySetup-Android-Support 安装 Mac 设备
android·macos
Dontla17 小时前
IndexedDB(浏览器原生NoSQL非关系型数据库)浏览器数据库、chrome数据库、idb工具库
数据库·chrome·nosql
旭日跑马踏云飞17 小时前
【Mac】实用技巧-在新窗口中打开当前文件夹
macos
BinaryBoss17 小时前
Python 从Maxcompute导出海量数据到文本文件(txt)或Excel
chrome·python·odps
林疏safe19 小时前
CAD2026最新mac的安装教程收集免费分享
macos
LongtengGensSupreme19 小时前
后端设置了跨域但是还是提示跨域问题,原因是这里有两个独立的安全策略在起作用:Chrome和Edge浏览器安全策略强制修改方案
前端·chrome·edge·浏览器·跨域
Digitally19 小时前
如何高效安全地将 iPhone 与 Mac 同步
安全·macos·iphone
程序员允诺19 小时前
办公 WiFi 二次隔离下的远程桌面解决方案实践(Mac → Win11)
macos
hudawei99620 小时前
win和Mac在创建python虚拟环境,启动环境等操作的异同
windows·python·macos·虚拟环境
2501_9160088920 小时前
没有 Mac 如何在 Windows 上创建 iOS 应用描述文件
android·macos·ios·小程序·uni-app·iphone·webview