Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Adds Local Parallel Chrome Usage example to README.md #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ cd "C:\Program Files (x86)\Google\Chrome\Application"
chrome --remote-debugging-port=9222 --disable-gpu --headless
```

### Local Parallel Chrome usage

Also you can run N instances of chromeless in prallel locally. This is specially usefull when you need to run integration tests in parallel that doesn't depends of each other.
To do that, you can specify a port in chromeless constructor a port to create a new instance of chromeless. Exemple below show how to create 10, totally independent instances, of chromeless:

```js
const { Chromeless } = require('chromeless');

chromelessInstances = [];
for(var portNumber = 9000; portNumber < 9010; portNumber++){
chromelessInstances.push(new Chromeless({ cdp: { port: portNumber } }));
}
```

### Proxy Usage

Follow the setup instructions [here](serverless#installation).
Expand Down