How to execute chrome directly from its path?
See original GitHub issueHello!
I’m trying to build an AWS Lambda function that shells out to execute a command-line A11Y checker called axe-cli. This checker uses headless chrome, which is expected to be in the PATH.
I’ve tried to include headless chrome using the serverless-plugin-chrome
plugin, but I keep getting an WebDriverError: unknown error: cannot find Chrome binary
error.
Here’s the code for this function, what am I doing wrong? Thanks!
https://gist.github.com/jaimeiniesta/2c2c42a6487b4a468f64dc9238d41a26
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Universal path to chrome.exe - Stack Overflow
C:\Program Files (x86)\Google\Chrome\Application. For 32-bit Chrome · C:\Program Files\Google\Chrome\Application. for Chrome 64-bit edition *(the default install ...
Read more >How to run Selenium tests on Chrome using ChromeDriver
Go to the terminal and type the command: sudo nano /etc/paths; Enter the password; At the bottom of the file, add the path...
Read more >Starting Google Chrome in application mode - Super User
Click the Chrome menu button ( ⋮ or ☰ ) · Select More tools → Create shortcut... · Right-click on icon, and select...
Read more >Puppeteer quick start - Chrome Developers
Install and run Puppeteer. ... To skip the download, download into another path, or download a different browser, see Environment variables.
Read more >ChromeDriver - WebDriver for Chrome - Getting started
Any of these steps should do the trick: include the ChromeDriver location in your PATH environment variable.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @jaimeiniesta. On AWS Lambda, the headless shell should be at
/var/task/node_modules/@serverless-chrome/lambda/dist/headless-chromium
.@nicklemmon relevant conversation is at https://github.com/jaimeiniesta/serverless-axe-cli/pull/1, which has been made public