Nightwatch.js automagically uses Firefox. Well wut.
See original GitHub issueHello dear people.
I am currently fiddling with nightwatch and I couldn’t yet even get it running properly when I’d like to test for a single-browser …
I’ve set up some code that manually manages and installs the accommodate versions of ChromeDriverfor OSX (since the start_process option doesn’t do that properly) using selenium-standalone. Well that works so far … anyhow for some reason, night watch ALWAYS appends the Firefox capability, which really sucks for me…
See this paste for a deeper insight.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Firefox WebDriver (Gecko) | Developer Guide - Nightwatch.js
Starting with Firefox 48, GeckoDriver is the only way to automate Firefox, the legacy FirefoxDriver which used to be part of Selenium is...
Read more >Getting Started | Nightwatch.js
Everything you need in order to get started with Nightwatch.js, step-by-step, with configuration guides for various browsers.
Read more >Nightwatch Settings | Developer Guide
Reference to list of settings received by nightwatch instance during test execution.
Read more >Nightwatch Configuration File | Developer Guide
Here's an example config file which uses Firefox as target browser and assumes that the geckodriver NPM package is installed. nightwatch.conf.js. module.exports ...
Read more >Getting Started | Developer Guide - Nightwatch.js
Install Nightwatch · Prerequisites · Setup Nightwatch · Preferences · Run your first end-to-end test · Use the Google Chrome DevTools Recorder.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

do you use -e chrome in command line ?
I spent an hour on this so I thought it might help someone else in the future. I had the exact same issue. I found that the nightwatch.json file in the tutorial found here (http://nightwatchjs.org/getingstarted#browser-drivers-setup) wasn’t quite right.
I had to move the “desiredCapabilities” entry and place it INSIDE of the “default” entry:
`
“test_settings” : {
} `
After I fixed this, I didn’t need Firefox installed on my machine and could only use Chrome.