UNPKG

@nice-digital/wdio-cucumber-steps

Version:

Shared step definitions for Cucumber JS BDD tests in WebdriverIO

14 lines 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dragElement = void 0; /** * Drag a element to a given destination * @param {String} sourceSelector The selector for the source element * @param {String} destinationSelector The selector for the destination element */ async function dragElement(sourceSelector, destinationSelector) { const sourceElement = await $(sourceSelector), destinationElement = await $(destinationSelector); await sourceElement.dragAndDrop(destinationElement); } exports.dragElement = dragElement; //# sourceMappingURL=dragElement.js.map