|
3 | 3 |
|
4 | 4 | **Lambdium allows you to run a Selenium Webdriver script written in Javascript inside of an AWS Lambda function bundled with [Headless Chromium](https://developers.google.com/web/updates/2017/04/headless-chrome).**
|
5 | 5 |
|
6 |
| -*This project is on the [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com), allowing you to install it in your AWS account with one click. Install in your AWS account [here](https://serverlessrepo.aws.amazon.com/#/applications/arn:aws:serverlessrepo:us-east-1:156280089524:applications~lambdium).* Quickstart instructions are in the [`README-SAR.md` file](https://github.com/smithclay/lambdium/blob/master/README-SAR.md). |
7 |
| - |
8 |
| -lambdium lets you run Selenium Webdriver scripts _written in JavaScript_ using a full version of Google Chrome on AWS Lambda. You can use this AWS Lambda function to: |
| 6 | +You can use this AWS Lambda function to: |
9 | 7 |
|
10 | 8 | * Run many concurrent selenium scripts at the same time without worrying about the infrastructure
|
11 |
| -* Configure Cloudwatch Events to run script(s) on a schedule |
12 |
| -* Integrate tests into any event-driven workflows (like CodeDeploy checks, webhooks, or uploads to an S3 bucket) |
| 9 | +* Configure Cloudwatch events to run script(s) on a schedule |
| 10 | +* Integrate selenium tests running in Chrome into different event-driven workflows (like CodeDeploy checks, webhooks, or uploads to an S3 bucket) |
13 | 11 |
|
14 | 12 | Since this Lambda function is written using node.js, you can run almost any script written for [selenium-webdriver](https://www.npmjs.com/package/selenium-webdriver). Example scripts can be found in the `examples` directory.
|
15 | 13 |
|
16 | 14 | This uses a special version of Chrome (headless chromium) from the [serverless-chrome](https://github.com/adieuadieu/serverless-chrome) project.
|
17 | 15 |
|
18 | 16 | *This is highly experimental and not all chromedriver functions will work. Check [issues](https://github.com/smithclay/lambdium/issues) for known issues.*
|
19 | 17 |
|
20 |
| -#### Requirements and Setup |
| 18 | +#### Requirements and setup for local development |
| 19 | + |
| 20 | +*This project is on the [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com), allowing you to install it in your AWS account with one click. Install in your AWS account [here](https://serverlessrepo.aws.amazon.com/#/applications/arn:aws:serverlessrepo:us-east-1:156280089524:applications~lambdium).* Quickstart instructions are in the [`README-SAR.md` file](https://github.com/smithclay/lambdium/blob/master/README-SAR.md). |
21 | 21 |
|
22 | 22 | * An AWS Account
|
23 |
| -* The [AWS SAM Local](https://github.com/awslabs/aws-sam-local) tool for running functions locally with the [Serverless Application Model](https://github.com/awslabs/serverless-application-model) (see: `template.yaml`) |
| 23 | +* The [AWS SAM Local](https://github.com/awslabs/aws-sam-local) running functions locally with the [Serverless Application Model](https://github.com/awslabs/serverless-application-model) (see: `template.yaml`, install: `npm install -g aws-sam-local`) |
24 | 24 | * node.js + npm
|
25 | 25 | * `modclean` npm modules for reducing function size (optional)
|
26 | 26 | * Bash
|
27 | 27 |
|
28 |
| -_Note:_ If you don't need to build, customize, or run this locally, you can deploy it directly from a [template on the AWS Serverless Application repository](https://serverlessrepo.aws.amazon.com/#/applications/arn:aws:serverlessrepo:us-east-1:156280089524:applications~lambdium) and skip all of the below steps. |
29 |
| - |
30 | 28 | #### Local development setup
|
31 | 29 |
|
32 | 30 | ##### 1. Fetching large binary dependencies
|
|
0 commit comments