question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to execute chrome directly from its path?

See original GitHub issue

Hello!

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:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
adieuadieucommented, Jul 8, 2018

Hi @jaimeiniesta. On AWS Lambda, the headless shell should be at /var/task/node_modules/@serverless-chrome/lambda/dist/headless-chromium.

1reaction
stephenmathiesoncommented, Aug 13, 2018

@nicklemmon relevant conversation is at https://github.com/jaimeiniesta/serverless-axe-cli/pull/1, which has been made public

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found