How to set the firefox profile at the node end in remote webdriver/grid configuration How to set the firefox profile at the node end in remote webdriver/grid configuration selenium selenium

How to set the firefox profile at the node end in remote webdriver/grid configuration


You need to provide the profile in the capabilities object as a base64 encoded zip:

var fs = require('fs');
capabilities: [  {    browserName: 'firefox',    seleniumProtocol: 'WebDriver',    maxInstances: 5,    platform: 'VISTA',    firefox_profile: new Buffer(fs.readFileSync("./profile.zip")).toString('base64')  }]

Moreover Firefox creates the missing files for a given profile. So you should keep just the necessary files in the profile depending on your needs:

Preferences:  user.jsPasswords:    key3.db              logins.jsonCookies:      cookies.sqliteCertificate:  cert8.sqliteExtensions:   extensions/


I think you'll have to use firefox profile name and not the location.

"webdriver.firefox.profile":"default"

Have a look at this and this and this

If you want know how to create a profile follow this and this