I built a lambda Function in java and Gradle with a Selenium Test. This test needs a chromedriver.exe File. How can I provide this File in the Zip-folder for Lambda? Or is it the better way to provide it in an S3-Bucket?
Asked
Active
Viewed 783 times
1 Answers
0
I will suggest that you use WebDriverManager, that way you dont need to use the driver.exe anymore. Please refer to my answer in this post on how to do that WebDriverManager

mbn217
- 884
- 7
- 14
-
Now I get the following Exception: "errorMessage": "java.lang.IllegalArgumentException: Parameter 'directory' is not a directory: /home/sbx_user1059/.m2/repository/webdriver", "errorType": "io.github.bonigarcia.wdm.WebDriverManagerException", "stackTrace": [ "io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:475)", "io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:458)", "io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:472)", ... – AskingSomething143 Jun 01 '18 at 10:47
-
The following line is the problem: WebDriverManager.chromedriver().setup(); – AskingSomething143 Jun 01 '18 at 10:57
-
what happens when you run it locally ? do you get the same exception? – mbn217 Jun 01 '18 at 13:18
-
I get the exception only with aws lambda... locally it works great – AskingSomething143 Jun 04 '18 at 05:42
-
So your Expcetion is telling that /home/sbx_user1059/.m2/repository/webdriver is not a directory , that means that it's trying to pull this path to get the maven dependencies. Can you share how your are doing things in lambda. I can't really help if there are no more information – mbn217 Jun 04 '18 at 13:24