Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Add way to make API calls to Phantom #345

Open
whastings opened this issue Dec 15, 2014 · 3 comments
Open

[Request] Add way to make API calls to Phantom #345

whastings opened this issue Dec 15, 2014 · 3 comments

Comments

@whastings
Copy link

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.

@rbakr
Copy link
Contributor

rbakr commented Mar 7, 2015

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).

@whastings
Copy link
Author

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

@bradcypert
Copy link
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants