Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d7a1665a
...
d7a1665a3b72c22c4078a3a207a94bdabc86c30a
authored
2013-03-18 10:21:48 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #423 - Document webSecurityEnabled
1 parent
7a235726
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
docs/events-filters.rst
docs/faq.rst
docs/modules/casper.rst
docs/events-filters.rst
View file @
d7a1665
...
...
@@ -309,7 +309,7 @@ Emitted when a new window has been opened.
Emitted when a remote ``alert()`` call has been performed.
``remote.callback``
~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
~~~
**Arguments:** ``data``
...
...
docs/faq.rst
View file @
d7a1665
...
...
@@ -257,6 +257,30 @@ When you have defined your navigation steps, ``run()`` executes them one by one
.. note:: The callback/listener stuff is an implementation of the `Promise pattern <http://blog.thepete.net/blog/2011/07/02/javascript-promises/>`_.
.. _faq_web_security:
.. index:: Web security, download, CORS
I'm having hard times downloading files using ``download()``
------------------------------------------------------------
You should try to disable `web security`. Using the ``--web-security`` command line option:
.. code-block:: text
$ casperjs --web-security=no myscript.js
Within code::
var casper = require('casper').create({
pageSettings: {
webSecurityEnabled: false
}
});
Or anytime::
casper.page.settings.webSecurityEnabled = false;
Is it possible to achieve parallel browsing using CasperJS?
-----------------------------------------------------------
...
...
docs/modules/casper.rst
View file @
d7a1665
...
...
@@ -643,6 +643,10 @@ Saves a remote resource onto the filesystem. You can optionally set the HTTP met
this.echo('Done.').exit();
});
.. note::
If you have some troubles downloading files, try to :ref:`disable web security
<faq
_web_security
>
`.
``each()``
-------------------------------------------------------------------------------
...
...
Please
register
or
sign in
to post a comment