bensu / doo

doo is a library and lein plugin to run cljs.test on different js environments.
Eclipse Public License 1.0
324 stars 63 forks source link

How to access phantomjs's page object #127

Closed vemv closed 6 years ago

vemv commented 7 years ago

PhantomJS's page object seems to be greatly useful, possibly adding selenium-style intregration testing. Example: http://phantomjs.org/api/webpage/property/url.html

Doo does create a page object (p variable here: https://github.com/bensu/doo/blob/6b2eea3ccee1faea1b2e9c3eb829c97d690354df/library/resources/runners/headless.js#L4).

Is it possible to access this variable inside a cljs.test test? Assuming yes, would it be safe to perform side-effectful actions such as reloading, navigation and such?

Cheers - Victor

vemv commented 6 years ago

I don't need this anymore, alleviated this need with chrome-headless