@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
15 lines • 583 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.openWebsite = void 0;
/*! https://github.com/webdriverio/cucumber-boilerplate/blob/master/src/support/action/openWebsite.js */
/**
* Open the given URL
* @param {String} type Type of navigation (url or site)
* @param {String} page The URL to navigate to
*/
async function openWebsite(type, page) {
const url = type === "url" ? page : browser.options.baseUrl + page;
await browser.url(url);
}
exports.openWebsite = openWebsite;
//# sourceMappingURL=openWebsite.js.map