DEV Community

Discussion on: Creating an API that runs Selenium via AWS Lambda

Collapse
 
chris93007wq profile image
Christine John

I'm getting the following error -
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.37.544315(730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7),platform=Linux 4.14.255-276-224.499.amzn2.x86_64 x86_64)

Could someone help me please? :(

Collapse
 
chris93007wq profile image
Christine John
Collapse
 
jairaencio profile image
Jaira Encio AWS Community ASEAN

Hi, this error would likely happen if the location for your chromedriver is incorrect. (lambda layer)

Collapse
 
awspipe profile image
awspipe

Hi I am new to AWS lambda, so kindly apologize for any obvious questions...
I was able to create the 2 layers mentioned by you, for python and chromium.
But I have no idea how can I run serverless.yaml...
You've mentioned "sls deploy", but I don't have linux to run this.

Any other alternative to run this? Thanks

Collapse
 
jairaencio profile image
Jaira Encio AWS Community ASEAN

I'm not a windows user but here is what I found codegrepper.com/code-examples/shel...