Dojo intern set firefox profile name

后端 未结 2 1302
小蘑菇
小蘑菇 2021-01-16 00:26

Hi Iam trying to set firefox profile name in environment settings of intern config file.I have tried

environments: [
    { browserName: \'firefox\',firefox_p         


        
2条回答
  •  -上瘾入骨i
    2021-01-16 01:00

    As the Selenium capabilities page you mention points out, the value of firefox_profile must be a Base64-encoded profile. Specifically, you ZIP up a Firefox profile directory, Base64 encode it, and use that string as the value of firefox_profile. The firefox-profile npm package can make this process easier. You'll end up with something like:

    environments: [
        { browserName: 'firefox', firefox_profile: 'UEsDBBQACAAIACynEk...'; },
        ...
    ],
    

    I would recommend storing the profile string in a separate module since it's going to be around 250kb.

提交回复
热议问题