Skip to content

ChromeDriver executable needs to be available in the path #8

@laufergall

Description

@laufergall

I followed all steps in the README. When I execute the lambda function,

serverless invoke --function hello

I get the error:

{
    "errorMessage": "Message: 'ChromeDriver executable needs to be available in the path.                 Please download from http://code.google.com/p/chromedriver/downloads/list                and read up at http://code.google.com/p/selenium/wiki/ChromeDriver' ",
    "errorType": "WebDriverException",
    "stackTrace": [
        [
            "/var/task/handler.py",
            13,
            "hello",
            "driver = webdriver.Chrome('/opt/chromedriver', chrome_options=options)"
        ],
        [
            "/opt/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py",
            59,
            "__init__",
            "self.service.start()"
        ],
        [
            "/opt/python/lib/python3.6/site-packages/selenium/webdriver/chrome/service.py",
            68,
            "start",
            "and read up at http://code.google.com/p/selenium/wiki/ChromeDriver\")"
        ]
    ]
}

I have checked in the deployment bucket in S3 and the chromedriver file is under s3://selenium-layer-dev-serverlessdeploymentbucket-10lxthu8funhm/serverless/selenium-layer/dev/1586419384780-2020-04-09T08:03:04.780Z/chromedriver.zip, as it should be.

What are I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions