Commit abb7f55a abb7f55a1bde85ec5ea18b6c14a7fdd733abfe28 by Nicolas Perriault

closes #755 - updated docs for casper options in test env

1 parent 8ebfa310
...@@ -114,6 +114,20 @@ You'll probably get something like this: ...@@ -114,6 +114,20 @@ You'll probably get something like this:
114 :align: center 114 :align: center
115 115
116 116
117 .. index:: options
118
119 Setting Casper options in the test environment
120 ----------------------------------------------
121
122 As you must use a preconfigured ``casper`` instance within the test environment, updating its :ref:`options <casper_options>` can be achieved this way::
123
124 casper.options.optionName = optionValue; // where optionName is obviously the desired option name
125
126 casper.options.clientScripts.push("new-script.js");
127
128
129 .. index:: setUp, tearDown
130
117 Advanced techniques 131 Advanced techniques
118 ------------------- 132 -------------------
119 133
...@@ -195,6 +209,7 @@ Sample custom command: ...@@ -195,6 +209,7 @@ Sample custom command:
195 .. warning:: 209 .. warning::
196 210
197 .. deprecated:: 1.1 211 .. deprecated:: 1.1
212
198 ``--direct`` option has been renamed to ``--verbose``, though ``--direct`` will still works, while is to be considered deprecated. 213 ``--direct`` option has been renamed to ``--verbose``, though ``--direct`` will still works, while is to be considered deprecated.
199 214
200 .. hint:: 215 .. hint::
......