0.0.1 • Published 7 years ago

daymare v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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)
    })