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.

Nighwatch does not exit properly. Chromedriver still in execution. Possible solution provided

See original GitHub issue

I’m submitting a … (check one with “x”)

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead use https://groups.google.com/d/forum/nightwatch-cucumber

Current behavior Nighwatch does not exit properly. Browser and chromedriver still in execution, even thought an error ocurred. After Ctrl+c chromedriver process is still in execution

Expected/desired behavior Nightwatch-cucumber executes the right nightwatch termination code. That way, the nightwatch & chromedriver process will terminate.

Reproduction of the problem If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://c9.io, http://www.koding.com, https://www.nitrous.io or similar.

git clone https://github.com/kabomi/nw-cucumber-not-exiting.git
cd nw-cucumber-not-exiting
npm install
nightwatch -c nightwatch-conf.js

Hint to a solution An example of what’s probably needed to be done

What is the expected behavior? Nightwatch-cucumber executes the right nightwatch termination code. That way, the nightwatch & chromedriver process will terminate.

What is the motivation / use case for changing the behavior? Jenkins builds timeout because of nightwatch process not exiting.

Please tell us about your environment: MacOs Sierra 10.12.5

  • output of the following command from your project root npm ls nightwatch cucumber nightwatch-cucumber && node --version
├── cucumber@2.3.1
├── nightwatch@0.9.16
└── nightwatch-cucumber@7.1.10

v6.9.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
viveksgitcommented, Aug 9, 2018

@mucsi96 the above issue occurs with v 9.1.2

1reaction
mucsi96commented, Sep 2, 2017

Fixed in https://github.com/mucsi96/nightwatch-cucumber/releases/tag/v8.0.6 .Thanks for your feedback! Thanks to You I improved and simplified the error handling a lot! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nightwatch with Chromedriver does not exit after assertions
The execution seems to freeze and never exits despite the chrome driver being closed. The firefox driver is working correctly.
Read more >
nightwatchjs/nightwatch - Gitter
hi friends, I'm facing issue in executing nightwatch on windows 10, it gives error ... SOLVED! it's chrome, not nightwatchjs. will post solution...
Read more >
Getting Started | Nightwatch.js
ChromeDriver is a standalone server which implements the W3C WebDriver wire protocol for Chromium. ChromeDriver is available for Chrome on Android and Chrome...
Read more >
How to run Selenium tests on Chrome using ChromeDriver
Given its importance and usage, it becomes crucial to test all websites on Chrome. This article will explain how one can perform Selenium...
Read more >
How To Perform Automation Testing With Cucumber And ...
You can provide any folder name of your choice; however, it should be properly mapped in the nightwatch.json file, which we will discuss...
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