Article directory
Download Chrome
https://www.google.com/chrome/
View version
Download the corresponding chromedriver
http://chromedriver.storage.googleapis.com/index.html
https://chromedriver.chromium.org/downloads
move
sudo mv chromedriver /usr/local/bin/
$ 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!
Little discovery
On lower versions of chromedriver, such as 90.x, when using selenium, the a tag cannot be clicked; on 99.x it is.
Iori 2023-09-28 (4)
It’s a holiday, no one reads the blog