How to set CasperJS page options from within a test in test environment? <p>I run most of my CasperJS tests with the <code>test</code> command as well as the <code>--ssl-protocol=any</code>and <code>--ignore-ssl-errors=true</code> flags.</p> <p>Is there a way that I can add those 2 flags to the tests themselves if they're in the test environment? I know you can set page options if you use the casper module like <code>var casper = require('casper').create({</code>, but that's not how my tests are set up. </p> <p>I also know you can do stuff like </p> <pre><code>casper.options.verbose = true; casper.options.logLevel = "debug"; </code></pre> <p>...but <code>casper.options.ignoreSslProtocol=true</code> doesn't seem to work.</p> <p>here's part of my login test -- </p> <pre><code>var config = require('../../config'), x = require('casper').selectXPath; casper.test.comment('basic login test!'); casper.start(config.base_url); casper.test.begin('test basic login functionality', function (test) { casper.then(function() { this.click('.js-flip_box'); test.info('logging in'); this.fill('#login_form', { 'email': config.email, 'password': config.password }, true); }); casper.then(function () { test.assertVisible ('.home_bar', 'nav bar visible'); }); casper.run(function() { test.done(); }); }); </code></pre> <p>...which I run with <code>casperjs --ssl-protocol=any --ignore-ssl-errors=true test login.js</code> (a mouthful) </p> <p>am I doomed? </p>