An open API service indexing awesome lists of open source software.

https://github.com/donpage/assemble

Standalone builder for Selenium-webdriver. // proof of concept
https://github.com/donpage/assemble

Last synced: 3 months ago
JSON representation

Standalone builder for Selenium-webdriver. // proof of concept

Awesome Lists containing this project

README

        

# assemble

> Standalone builder for Selenium-webdriver. Assemble makes it easy to get a webdriver instance with minimal configurations.

## Install

```
$ npm install --save assemble-driver
```

## Usage

```js
const buildConfig = {
server: 'http://localhost:4444/wd/hub',
browser: 'Chrome'
}
const assemble = require('assemble-driver');

assemble(buildConfig).webdriver();
//=> Selenium WebDriver instance
```

## API

### assemble([buildConfig])

#### buildConfig

_These options should be a json format._

| Option | Type | Default | Description |
| ---- | ----------- | ----------- | ----------- |
| server | `string` | http://localhost:4444/wd/hub | Target host for test. |
| browser | `string` | Firefox | Target browser. |
| browser_version | `string` | ~ | Browser version. Will use current latest version if not set.
| os | `string` | ~ | Operating System. |
| os_version | `string` | ~ | OS version. |
| device | `string` | ~ | Device. |
| debug | `boolean` | false | Debug mode. |
| video | `boolean` | true | Record browser. (browserstack) |
| project | `string` | ProjectAssemble | Project Name |
| build | `string` | (today's date) | Build Name |
| creds | `Object` | ~ | Cloud or grid creds: `{user, key}` |

## License

MIT © [](https://github.com/DonPage)