Phantomjs: Behavior different between cmdline and --config

Created on 26 May 2014  路  2Comments  路  Source: ariya/phantomjs

Using --load-images, defaultPageSettings.loadImages gets set to false as expected:

~$ phantomjs --load-images=false
phantomjs> console.log(phantom.defaultPageSettings.loadImages)
false
undefined
phantomjs> phantom.exit(0)

but putting this config in a json file and calling with --config doesn't work:

~$ cat config.json 
{"autoLoadImages": false, "loadImages": false}
~$ phantomjs --config=config.json
phantomjs> console.log(phantom.defaultPageSettings.loadImages)
true                                            <===  ?!
undefined
phantomjs> phantom.exit(0)

Am I missing something?

Update: config.json contains both the expected name and the name suggested by https://github.com/ariya/phantomjs/issues/11775

Update2: This is in both 1.9.2 and 1.9.7 on mac.

stale

Most helpful comment

This is still an issue 2 years later with PhantomJS 2.1.1. Any plans on getting this fixed?

All 2 comments

This is still an issue 2 years later with PhantomJS 2.1.1. Any plans on getting this fixed?

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maboiteaspam picture maboiteaspam  路  3Comments

mz3 picture mz3  路  5Comments

Marmeladenbrot picture Marmeladenbrot  路  4Comments

dhilipsiva picture dhilipsiva  路  4Comments

h4wlt picture h4wlt  路  5Comments