Repository navigation
docs: safaridriver has no CLI; copy the cached binary for selenium on Windows - #40
Merged
plum117 merged 2 commits intoOct 9, 2026
Conversation
… Windows `npx safaridriver` fails with "could not determine executable to run": the package has no bin. The Windows note linked node_modules\geckodriver\geckodriver.exe, which does not exist: the binary is downloaded into the cache folder as geckodriver-<version>.exe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plum117
marked this pull request as ready for review
October 9, 2026 20:20
|
With a wildcard, Windows `copy` joins all matching files into one, so a cache with two versions gave a broken binary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Two instructions from the README rewrite of 2026-09-20 do not work:
npx safaridriver --port=4444fails:npm error could not determine executable to run(checked withsafaridriver@2.0.0). The package has nobin; Safaridriver itself is/usr/bin/safaridriveron macOS.mklinknote links%APPDATA%\npm\node_modules\geckodriver\geckodriver.exe, which does not exist. The packages download the binary into their cache folder:geckodriver-<version>.exeinGECKODRIVER_CACHE_DIR(getBinaryFilename()),msedgedriver.exeinEDGEDRIVER_CACHE_DIR, both defaulting toos.tmpdir().Change
npx safaridriverline; a note to run/usr/bin/safaridriver --port=4444directly, aftersafaridriver --enableonce.geckodriver --versiononce, andcopythe versioned binary to a folder onPATH(copyneeds no administrator rights, unlikemklinkfor files). The root note also names Selenium Manager, which recentselenium-webdriverversions use to download drivers.Test plan
GECKODRIVER_CACHE_DIR=<dir> node bin/geckodriver.js --version(macOS): downloadsgeckodriver-0.37.1into<dir>(.exeon Windows pergetBinaryFilename())npx --no-install safaridriver --helpwithsafaridriver@2.0.0installed:could not determine executable to runcmdsteps are not run on Windows here🤖 Generated with Claude Code