-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using browser.end with cucumber results into Error #3332
Comments
Will pick this |
Thanks @vinodreddy-bs, I am not sure if this is still an error in the latest nightwatch version. Could you verify it? Let us know if you need any help |
@AutomatedTester @gravityvi |
This is not an unwanted behaviour, it can just be repetitive sometimes. If we remove this and don't use So, we still need to keep that statement, but only run it if the session is not closed yet. |
Describe the bug
Using
browser.end
inside cucumber tests ends the session but Nightwatch still tries to close the session at the end of cucumber test suite which results into an error.Sample test
sampleTest.js
Run with command
Verbose output
debug.log
Configuration
nightwatch.json
// NIghtwatch-default-config
Your Environment
nightwatch --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: