Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const { setDefaultTimeout, AfterAll, BeforeAll } = require('cucumber');
const { createSession, closeSession, startWebDriver, stopWebDriver } = require('nightwatch-api');
BeforeAll(async () => {
await startWebDriver();
await createSession();
AfterAll(async () => {
await closeSession();
await stopWebDriver();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment