stuplum/astrolabe

How to test page objects from node console

Opened this issue · 0 comments

Yo yo,
I'm trying to use pageObjects directly in node console. This is the steps that I'm doing:
Starting selenium server on http://localhost:4444/wd/hub

$ webdriver-manager start 

And in the new terminal:

$ node
> var page = require('path/to/astro/page/object');
> page.go();

This blows up because context is not initialized. What am I missing?