if (phantom.args.length === 0) {console.log("This example instruct PhantomJS to just open a specific URL.")console.log('URL must be passed as a parameter.');phantom.exit();} else {if (phantom.state.length === 0) {console.log("Loading: " + phantom.args[0]);phantom.state = 'gotourl';phantom.open(phantom.args[0]);} else {console.log("Loaded!");// TODO - I don't have a specific condition for exit yet}}
Is there an issue associated with this? If not, would be a good idea
to create it first.
In all cases, this would be really good to have.
--
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
Custom network access manager would be useful for
http://code.google.com/p/phantomjs/issues/detail?id=2.