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/