chromeless-tmp
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

chromeless

Installation

npm install chromeless

Usage

import Chromeless from 'chromeless'
 
const chromeless = new Chromeless()
 
chromeless
    .goto('https://console.graph.cool/signup')
    .type('#email', 'test@account.com')
    .type('#password', 'secret password')
    .click('submit')
    .wait('.graphcool-console')
    .evaluate(() => {
        return document.querySelector('.title').text;
    })
    .end()
    .then((title) => {
        console.log('title', title)
    })
    .catch((error) => {
        console.error('test failed', error)
    })

Readme

Keywords

none

Package Sidebar

Install

npm i chromeless-tmp

Weekly Downloads

1

Version

0.1.22

License

none

Last publish

Collaborators

  • adieuadieu
  • schickling