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
- Host: GitHub
- URL: https://github.com/donpage/assemble
- Owner: DonPage
- License: mit
- Created: 2017-05-30T13:56:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T17:46:51.000Z (almost 8 years ago)
- Last Synced: 2025-01-28T05:47:39.345Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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)