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
1c3b0b8d
...
1c3b0b8de49e344b9f4ae4b1d4fb43b0b4c464e4
authored
2011-12-18 11:54:28 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed phantom.casperPath was always redefined by cli argument value
1 parent
35a1cff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
casper.js
casper.js
View file @
1c3b0b8
...
...
@@ -56,8 +56,9 @@
};
phantom
.
casperArgs
=
phantom
.
extractCasperArgs
(
phantom
.
args
);
phantom
.
casperPath
=
phantom
.
casperArgs
.
options
[
'casper-path'
];
//console.log(JSON.stringify(phantom.casperArgs, null, 4))
if
(
!
phantom
.
casperPath
)
{
phantom
.
casperPath
=
phantom
.
casperArgs
.
options
[
'casper-path'
];
}
if
(
!
phantom
.
casperPath
)
{
console
.
log
(
'Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-path option?'
);
...
...
Please
register
or
sign in
to post a comment