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

ultronjs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ultronjs

Automated testing library built on top of Selenium

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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)

Keywords

automated

FAQs

Package last updated on 01 Sep 2016

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