Nightmare react utils
Library which helps you to scrape data from react sites easily.
Installation:
Using npm:
$ npm i --save nightmare-react-utils
Actions:
Enhance nightmare
const Nightmare = const Actions = Actions Nightmareaction...Actions react
Available actions
All actions are in .react namespace
.exists(selector)
Check if exists react element with selector.
Returns boolean
.
.find(selector)
Finds react elements and take his state, props and context.
Returns objects with {state, props, context}
.findAll(selector)
Finds react elements and take their state, props and context.
Returns array of objects {state, props, context}
.wait(selector[, callback|(path, value), timeout])
Waits for react element.
Usage:
nightmare react react react react