I use the following versions:
- Selenium - 3.14.0
- Webdrivermanager - 2.2.4
To create ChromeDriver I use the following configuration:
WebDriverManager.chromedriver()
.targetPath("/tmp")
.setup();
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless", "--no-sandbox", "--disable-dev-shm-usage");
options.setBinary("/tmp");
ChromeDriver driver = new ChromeDriver(options);
When I run my lambda the following exception occurs(from lambda logs):
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /tmp is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Is there a good way to install Chrome browser in AWS Lambda and provide it for ChromeDriver?