Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

No easy way to pass in target url #62

Closed
willworden opened this issue Jul 18, 2014 · 2 comments
Closed

No easy way to pass in target url #62

willworden opened this issue Jul 18, 2014 · 2 comments

Comments

@willworden
Copy link

Is there a way to pass in a target url the tests?

For an automation pipeline this is useful since the baseline image is the same but the environments are different.

@jamescryer
Copy link

Sure, just read an argument (see http://casperjs.readthedocs.org/en/latest/cli.html) for the url, and pass that to your casper.start(); method.

@willworden
Copy link
Author

Thanks James, this approach worked

However, it involved some magic number parsing conventions which was less than optimal. I am unblocked though!

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

No branches or pull requests

2 participants