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

0.0.1 • Public • Published

daymare

Installation

npm install daymare

Usage

import Daymare from 'daymare'
 
const daymare = new Daymare()
 
daymare
    .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 daymare

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • timsuchanek