nightwatch: Nightwatch doesnt work with firefox with profile

I have create a firefox profile that has a theme set (just for testing that indeed is using the specified profile). Im making firefox use that profile by passing the following configuration:

  "moz:firefoxOptions": {
    "args": ["-profile", "bin/hfilsojg.nightwatchProfile"]
  }

But when I use the profile, my nightwatch test will only open the browser but wont execute any other command. I need to load a profile to test some extensions behavior and to set a proxy.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (1 by maintainers)

Most upvoted comments

@jbione seems like geckodriver issue to me. https://github.com/mozilla/geckodriver/issues/1058#issuecomment-350254437 helped me to get back on track after a day of struggle

Great 😄, i think you should run ff from binary "binary": "/usr/bin/firefox" and args -p and profile path should work without prompt to choose profile. Ok i’ve checked where you should add and if you have default desiredcapabilities:

"desiredCapabilities": {
                "browserName": "firefox",
                "javascriptEnabled": true,
                "marionette": true,
                "acceptSslCerts": true,
                "moz:firefoxOptions": {
                  "binary": "/Applications/Firefox.app/Contents/MacOS/firefox-bin",
                  "args": ["-P"],
                  "profile": "Li90bXAvZmlyZWZveA=="
                }
            } 

and the “Li90bXAvZmlyZWZveA==” is my profil location /tmp/firefox inside firefox dir i have somechars.nightwatch. Let me know if this solution will work