Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed May 31, 2016
1 parent 602fafa commit d8d2b79
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,49 @@
# Nodium

Pure nodejs selenium functionnal helpers
Nodium is a collection of useful and pure functions around Selenium Webdriver.
Functions can be imported as ES5 or ES6 (stage2) from package.
You are free to use the test runner of your choice.

## Motivation

There is a lot of frameworks on top of Selenium Webdriver.

I wanted to provide a simple wrapper around webdriver to avoid:
- custom and/or complex configuration file
- force usage and/or configuration of a test runner
- writing long documentation to be able to use a tool which is already documented
- global variables and / or context

So we will now be able to:
- use Selenium Webdriver quickly, with your own tools and habits (ES6, BDD, ...)
- choose the way you configure browsers and options used by your testsuite (env var, function parameters, code...)

Hope you will enjoy this toolbox!

## Installation

`npm i nodium`

## Usage

Available helpers:

- driver/
- index: load the corresponding webdriver depends on defined environment variables (local firefox by default)
- utils: helpers to play with your loaded pages dom
- local: load the corresponding local webdriver depends on your owner parameters
- browserstack: load a configured BrowserStack webdriver depends on your owner parameters
- saucelabs: load a configured SauceLabs webdriver depends on your owner parameters
- hook/
- browserstack: update BrowserStack status at the end of your test suite
- saucelabs: update SaucLabs status at the end of your test suite
- jsonServer: start jsonServer before running your test
- pm2: start and stop pm2 processes
- assert/
- chai: use expect and should from chai using chai-as-expected

## Todo

- write documentation (by now, you can read the code directly)
- add tests (see https://github.com/jeromemacias/mocha-node-webdriver for usage examples)
- add more hook helpers
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nodium",
"version": "0.1.0",
"description": "Pure nodejs selenium webdrivers functional helpers",
"description": "Pure nodejs selenium webdriver functional helpers",
"homepage": "https://github.com/jeromemacias/nodium",
"repository": {
"type": "git",
Expand All @@ -24,7 +24,7 @@
"node": "~4.0"
},
"engine-strict": true,
"main": "lib",
"main": "lib/driver/index.js",
"dependencies": {
"selenium-webdriver": "~2.53.2"
},
Expand Down

0 comments on commit d8d2b79

Please sign in to comment.