screen-pill
library for creating page objects in javascript
inpsired by cheezy's ruby implementation
check out the cucumber demo
install
npm install screen-pill
usage
declare a function to encapsulate a web page
// google-search.js const ScreenPill = { this this this this this this { await thisterms await thisterms await thisgoogle return thisgoogle } return this} moduleexports =
instantiate with driver and use methods
const webdriver = const driver = const GoogleSearch = let searchPage = driver { await searchPage return searchPage}
documentation
see /test
for examples using cucumber and chai
see wiki for api and usage
under active development (contributions welcome)
contributors
- sean gregory
- phil jordan
special thanks
- jesse keane