question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nightwatch.js automagically uses Firefox. Well wut.

See original GitHub issue

Hello 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:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
martineezcommented, Nov 1, 2016

do you use -e chrome in command line ?

0reactions
theironcookcommented, Feb 28, 2017

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” : {

"default" : {
     
    "desiredCapabilities": {
        "browserName": "chrome",              
  }
}    

} `

After I fixed this, I didn’t need Firefox installed on my machine and could only use Chrome.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found