gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

[PhantomJS][Args] How to pass args to PhantomJS #895

Closed Kenith closed 6 years ago

Kenith commented 6 years ago

Hello All,

We would like to pass some args to phantomjs during the test. However the following config with 'phantomjs.cli.args': ['--ignore-ssl-errors=yes', '--proxy=172.17.0.1:3128'] is not working. Would you please give us a hand?

module.exports = {
    rootUrl: 'https://github.com/gemini-testing',

    browsers: {
        PC: {
            gridUrl: 'http://127.0.0.1:9999',
            windowSize: '1024x768',
            desiredCapabilities: {
                browserName: 'phantomjs',
                'phantomjs.cli.args': ['--ignore-ssl-errors=yes', '--proxy=172.17.0.1:3128'],
            },
        },
    },

    system: {
        plugins: {
            'html-reporter/gemini': {
                enabled: true,
                path: 'gemini-report',
            },
        },
        debug: false,
    },

};

Thank you, Ken

sipayRT commented 6 years ago

hi

you should pass these options manually from cli on phantomjs --webdriver=4444 run. See phantomjs docs

Kenith commented 6 years ago

@sipayRT Really appreciate for the help. Now working.

But seems a bug for some urls "'unsafe-eval' is not an allowed", bug here: https://github.com/ariya/phantomjs/issues/13114, and no solution for now.... ;(

Kenith commented 6 years ago

closed as solution found