Hi Iam trying to set firefox profile name in environment settings of intern config file.I have tried
environments: [
{ browserName: 'firefox',firefox_profile:'default' },
{firefox_profile:'default'}
],
and
environments: [
{ browserName: 'firefox',profile:'default' },
{profile:'default'}
],
as well as
capabilities: {
'selenium-version': '2.42.0',
firefox_profile:'default'
},
as mentioned in Selenium capabilities But still firefox launches with an anonymous profile.
However if I use watir,
def setup
@browser = Watir::Browser.new :firefox, :profile => 'default'
goto_ecp_console_manage_page
end
browser launches the default profile which is 'kinit-ed'(kerberos)
I used @jason0x43 suggestion to rely on the firefox-profile Node.js module and I've created the following grunt task
fireforProfile4selenium
. With a simple configuration set into theGruntfile.js
, the plugin writes a file on disk with the Base64 encoded version of a zipped profile!Here is the grunt configuration:
Here is the plugin:
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 offirefox_profile
. The firefox-profile npm package can make this process easier. You'll end up with something like:I would recommend storing the profile string in a separate module since it's going to be around 250kb.