venus.js icon indicating copy to clipboard operation
venus.js copied to clipboard

[Request] Add way to make API calls to Phantom

Open whastings opened this issue 10 years ago • 3 comments

It would be awesome if there was a way to make some calls to Phantom's api before specs are run with it.

As a use case example, I have some tests that require scrolling the window, and I can't run them because Phantom by default just grows the window's height to be the height of the whole document, never adding a scroll bar. But if I had access to Phantom's page.viewportSize property, I could set it to what I need before running the tests.

whastings avatar Dec 15 '14 22:12 whastings

Hi @whastings, I believe we spoke offline about this issue, is it ok for me to close? (I believe you ended up stubbing that value).

rbakr avatar Mar 07 '15 00:03 rbakr

I still think it would be a cool feature, but sure.

whastings avatar Mar 07 '15 17:03 whastings

@whastings Just out of curiosity, how would you expect to interact with Phantom from a Venus test?

That is, can you give a syntax example of what you'd expect to write?

bradcypert avatar Oct 02 '15 05:10 bradcypert