UNPKG

@nice-digital/wdio-cucumber-steps

Version:

Shared step definitions for Cucumber JS BDD tests in WebdriverIO

15 lines 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setCookie = void 0; /*! https://github.com/webdriverio/cucumber-boilerplate/blob/master/src/support/action/setCookie.js */ /** * Set a given cookie to a given value. When the cookies does not exist it will * be created * @param {String} name The name of the cookie * @param {String} value The value of the cookie */ async function setCookie(name, value) { await browser.setCookies([{ name, value }]); } exports.setCookie = setCookie; //# sourceMappingURL=setCookie.js.map