JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q40731F
  • License ISC

Automated testing library built on top of Selenium

Package Exports

  • ultronjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ultronjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

UltronJS

Ultron is a JavaScript/NodeJS library for creating automated tests running on the browser of your choice.

Example

var Ultron = require('ultronjs');
var ultron = new Ultron('chrome'); // open Chrome

ultron
  .it("should open GitHub via Google")
  .describe(function() {
    
    this.open('http://google.com');
    
    this.wait('input[type="text"]').toAppear();
    
    this.fill('input[type="text"]').with('GitHub');
    
    this.$('input[type="text"]').submit();
    
    this.wait('#ires').toAppear(); // results container
    
    this.click('#ires a[href="https://github.com/"]'); // first result
    
    this.wait.until.titleContains('GitHub');
    
    this.wait.for(1000); // wait for just a sec
    
  })
  .run()
  .then(function() {
    ultron.end(); // close browser
  });

Installation

Using npm

$ npm install ultronjs

# or

$ npm i -D ultronjs

You also need to download and include in your PATH the driver of the browser of your choice in order to use Ultron.

Drivers downloads

Documentation

(work in progress)