UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

25 lines 1.75 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CUSTOMIZE_RESULT_BUNDLE_PATH = exports.XCUITEST_DRIVER_SYNC_NAME = exports.WDA_CF_BUNDLE_NAME = exports.CAP_NAMES_NO_XCODEBUILD_REQUIRED = exports.WDA_STARTUP_RETRY_INTERVAL = exports.WDA_REAL_DEV_TUTORIAL_URL = exports.WDA_REAL_DEV_STARTUP_RETRIES = exports.WDA_SIM_STARTUP_RETRIES = exports.SHARED_RESOURCES_GUARD = void 0; exports.isXcodebuildNeeded = isXcodebuildNeeded; const async_lock_1 = __importDefault(require("async-lock")); const node_path_1 = __importDefault(require("node:path")); const appium_webdriveragent_1 = require("appium-webdriveragent"); exports.SHARED_RESOURCES_GUARD = new async_lock_1.default(); exports.WDA_SIM_STARTUP_RETRIES = 2; exports.WDA_REAL_DEV_STARTUP_RETRIES = 1; exports.WDA_REAL_DEV_TUTORIAL_URL = 'https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/'; exports.WDA_STARTUP_RETRY_INTERVAL = 10000; exports.CAP_NAMES_NO_XCODEBUILD_REQUIRED = ['webDriverAgentUrl', 'usePreinstalledWDA']; /** Whether xcodebuild is required to start WebDriverAgent for the given session options. */ function isXcodebuildNeeded(opts) { return !exports.CAP_NAMES_NO_XCODEBUILD_REQUIRED.some((capName) => Boolean(opts[capName])); } /** CFBundleName value for WebDriverAgent runner apps on the device. */ exports.WDA_CF_BUNDLE_NAME = node_path_1.default.basename(appium_webdriveragent_1.WDA_RUNNER_APP, '.app'); exports.XCUITEST_DRIVER_SYNC_NAME = 'XCUITestDriver'; exports.CUSTOMIZE_RESULT_BUNDLE_PATH = 'customize_result_bundle_path'; //# sourceMappingURL=constants.js.map