UNPKG

detox-allure2-adapter

Version:
53 lines 2.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DetoxAction = void 0; const DetoxActionResults_1 = require("./DetoxActionResults"); class DetoxAction { static scrollInDirection(direction, amountInDP, startOffsetPercentX, startOffsetPercentY) { return new DetoxActionResults_1.ScrollInDirectionResult(direction, amountInDP, startOffsetPercentX, startOffsetPercentY); } static longPress(x, y, duration) { return new DetoxActionResults_1.LongPressResult(x, y, duration); } static swipeInDirection(direction, fast, normalizedOffset, normalizedStartingPointX, normalizedStartingPointY) { return new DetoxActionResults_1.SwipeInDirectionResult(direction, fast, normalizedOffset, normalizedStartingPointX, normalizedStartingPointY); } static multiClick(times) { return new DetoxActionResults_1.MultiClickResult(times); } static tapAtLocation(x, y) { return new DetoxActionResults_1.TapAtLocationResult(x, y); } static createCoordinatesProvider(x, y) { return new DetoxActionResults_1.TapAtLocationResult(x, y); } static scrollToEdge(edge, startOffsetPercentX, startOffsetPercentY) { return new DetoxActionResults_1.ScrollToEdgeResult(edge, startOffsetPercentX, startOffsetPercentY); } static scrollInDirectionStaleAtEdge(direction, amountInDP, startOffsetPercentX, startOffsetPercentY) { return new DetoxActionResults_1.ScrollInDirectionStaleAtEdgeResult(direction, amountInDP, startOffsetPercentX, startOffsetPercentY); } static getAttributes() { return new DetoxActionResults_1.GetAttributesResult(); } static scrollToIndex(index) { return new DetoxActionResults_1.ScrollToIndexResult(index); } static setDatePickerDate(dateString, formatString) { return new DetoxActionResults_1.SetDatePickerDateResult(dateString, formatString); } static adjustSliderToPosition(newPosition) { return new DetoxActionResults_1.AdjustSliderToPositionResult(newPosition); } static longPressAndDrag(duration, normalizedPositionX, normalizedPositionY, targetElement, normalizedTargetPositionX, normalizedTargetPositionY, isFast, holdDuration) { return new DetoxActionResults_1.LongPressAndDragResult(duration, normalizedPositionX, normalizedPositionY, targetElement, normalizedTargetPositionX, normalizedTargetPositionY, isFast, holdDuration); } static takeViewScreenshot() { return new DetoxActionResults_1.TakeViewScreenshotResult(); } static accessibilityAction(actionName) { return new DetoxActionResults_1.AccessibilityActionResult(actionName); } } exports.DetoxAction = DetoxAction; //# sourceMappingURL=DetoxAction.js.map