New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nodium

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodium

Pure nodejs selenium webdriver functional helpers

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

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

Keywords

selenium

FAQs

Package last updated on 31 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts