appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
18 lines • 771 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDerivedDataPath = getDerivedDataPath;
const node_path_1 = __importDefault(require("node:path"));
/**
* Returns the WebDriverAgent derived data root from Xcode build settings.
*/
async function getDerivedDataPath(wda) {
const buildSettings = await wda.retrieveBuildSettings({
scheme: 'WebDriverAgentRunner',
});
const buildDir = buildSettings?.BUILD_DIR;
return buildDir ? node_path_1.default.dirname(node_path_1.default.dirname(node_path_1.default.normalize(buildDir))) : undefined;
}
//# sourceMappingURL=utils.js.map