gemini-testing / gemini

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

[Firefox] How to set capabilities for firefox? #907

Open Kenith opened 6 years ago

Kenith commented 6 years ago

Hello All,

We have set a docker image, and firefox 47.0.1 with driver 2.53.1 works well. However, how to set the capabilities for firefox? We tried the followings. Not working.

For more info, please refer to: Gemini_Firefox_SimulatePC&iPhone_NeedHelp

browsers: {
        iPhone6_6s_7_8: {
            windowSize: '375x667',
            desiredCapabilities: {
                browserName: 'firefox',
                // proxy: {
                //     proxyType: 'manual',
                //     httpProxy: '172.17.0.1:3128',
                //     sslProxy: '172.17.0.1:3128',
                // },
                acceptInsecureCerts: true,
                acceptSslCerts: true,
                // The following firefox options are not working. We are tracking the issue.   
                'moz:firefoxOptions': {
                        'prefs': {
                            "general.useragent.override": 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
                        },
                },
            },
        },
        PC: {
            windowSize: '1920x1080',
            desiredCapabilities: {
                browserName: 'firefox',
                // proxy: {
                //     proxyType: 'manual',
                //     httpProxy: '172.17.0.1:3128',
                //     sslProxy: '172.17.0.1:3128',
                // },
                acceptInsecureCerts: true,
                acceptSslCerts: true
            },
        },
    },

Thank you, Ken