Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run test: Error: Unable to find a suitable driver for chrome #39

Open
rudifa opened this issue Oct 21, 2022 · 2 comments
Open

npm run test: Error: Unable to find a suitable driver for chrome #39

rudifa opened this issue Oct 21, 2022 · 2 comments
Labels

Comments

@rudifa
Copy link

rudifa commented Oct 21, 2022

Hello

I cloned this repo and launched npm run test, which produced the error report shown below.
How do I install a suitable driver for chrome?
My platform is macOS 12.6.

tinymce-webcomponent % npm run test                                                    

> @tinymce/[email protected] test
> bedrock-auto -b chrome-headless -d src/test/ts

bedrock-auto v13.2.1 starting...
Compiling 1 tests...
No local chromedriver for chrome. Searching system path...
Error: Unable to find a suitable driver for chrome
@exalate-issue-sync
Copy link

Ref: INT-3039

@rudifa
Copy link
Author

rudifa commented Oct 21, 2022

Solved!

I followed the guidance here:

  • download the latest stable release from chromedriver downloads site
  • in the downloads folder: mv chromedriver /usr/local/bin
  • open the mac finder in /usr/local/bin, right-click on chromedriver
  • select Open
  • Are you sure you want to open it?: click Open

Now the tests run and pass.

tinymce-webcomponent % npm run test                                          

> @tinymce/[email protected] test
> bedrock-auto -b chrome-headless -d src/test/ts

bedrock-auto v13.2.1 starting...
Compiling 1 tests...
No local chromedriver for chrome. Searching system path...
browser: 106.0.5249.119 driver: 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569})
bedrock-auto v13.2.1 available at: http://localhost:8000

Initial page has loaded ...

Current test: LoadTest
Session: 86952477, Status: COMPLETE, Progress: 1/1, Failed: 0, Skipped: 0 ... 
All tests passed.

Suggestion: you could add to the error report a line similar to
Please install the driver from the chromedriver download site into your system path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant