Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

taiko

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taiko

An easy to use wrapper over Google Chrome's Puppeteer library.

  • 0.0.9-nightly.20180716
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by1.78%
Maintainers
1
Weekly downloads
 
Created
Source

Taiko

License: MIT alpha software npm version dependencies Status devDependencies Status contributions welcome

Browser automation simplified.

peek 2017-12-11 17-05

Getting started

Command Line Interface

npm install -g taiko

On Windows, make sure that the location %AppData%\npm(or wherever npm ends up installing the module on your Windows flavor) is present in PATH environment variable.

On Linux, install taiko to a NODE_PATH with executable permission.

As a Module

npm install taiko --save

Usage

Command line

Use the Read–eval–print Loop to record a script.

$ taiko
> openBrowser()
 ✔ Browser and page initialized

> goto('https://getgauge.io')
 ✔ Navigated to url "https://getgauge.io/"

> click('Get Started')
 ✔ Clicked element containing text "Get Started"

> .code
const { browser, openBrowser, goto, click, closeBrowser } = require('taiko');

(async () => {
    try {
        await openBrowser();
        await goto('https://getgauge.io');
        await click('Get Started');
    } catch (e) {
        console.error(e);
    } finally {
        if (browser()) {
            closeBrowser();
        }
    }
})();

> .code code.js

Running a taiko script

$ taiko code.js

As a Module

const { openBrowser, goto, click, closeBrowser } = require('taiko');

(async () => {
    await openBrowser();
    await goto('https://getgauge.io');
    await click('Get Started');
    await closeBrowser();
})();

Documentation

  • API

Talk to us

The Gauge team maintains taiko. Reach out to us at the same forums for questions.

Keywords

FAQs

Package last updated on 16 Jul 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc