Git Product home page Git Product logo

nodium's Introduction

Nodium

NPM Version Build Status Circle CI BrowserStack Status Sauce Test Status

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

Todo

  • write documentation (by now, you can read the code directly)
  • add more hook helpers

nodium's People

Contributors

jeromemacias avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nodium's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.