appium-uiautomator2-driver 6.7.9 → 6.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +57 -28
- package/package.json +4 -3
- package/build/test/functional/commands/file-movement-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/file-movement-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/file-movement-e2e-specs.js +0 -100
- package/build/test/functional/commands/file-movement-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-accessibility-id-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-accessibility-id-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-accessibility-id-e2e-specs.js +0 -64
- package/build/test/functional/commands/find/by-accessibility-id-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-css-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-css-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-css-e2e-specs.js +0 -107
- package/build/test/functional/commands/find/by-css-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-id-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-id-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-id-e2e-specs.js +0 -61
- package/build/test/functional/commands/find/by-id-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-image-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-image-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-image-e2e-specs.js +0 -116
- package/build/test/functional/commands/find/by-image-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-uiautomator-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-uiautomator-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-uiautomator-e2e-specs.js +0 -171
- package/build/test/functional/commands/find/by-uiautomator-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/by-xpath-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/by-xpath-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/by-xpath-e2e-specs.js +0 -115
- package/build/test/functional/commands/find/by-xpath-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/find-basic-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/find-basic-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/find-basic-e2e-specs.js +0 -99
- package/build/test/functional/commands/find/find-basic-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/find-system-ui-el-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/find-system-ui-el-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/find-system-ui-el-e2e-specs.js +0 -66
- package/build/test/functional/commands/find/find-system-ui-el-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/from-el-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/from-el-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/from-el-e2e-specs.js +0 -65
- package/build/test/functional/commands/find/from-el-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/find/invalid-strategy-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/find/invalid-strategy-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/find/invalid-strategy-e2e-specs.js +0 -56
- package/build/test/functional/commands/find/invalid-strategy-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/attribute-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/attribute-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/attribute-e2e-specs.js +0 -94
- package/build/test/functional/commands/general/attribute-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/context-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/context-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/context-e2e-specs.js +0 -106
- package/build/test/functional/commands/general/context-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/element-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/element-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/element-e2e-specs.js +0 -84
- package/build/test/functional/commands/general/element-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/general-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/general-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/general-e2e-specs.js +0 -92
- package/build/test/functional/commands/general/general-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/mobile-command-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/mobile-command-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/mobile-command-e2e-specs.js +0 -79
- package/build/test/functional/commands/general/mobile-command-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/network-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/network-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/network-e2e-specs.js +0 -62
- package/build/test/functional/commands/general/network-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/source-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/source-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/source-e2e-specs.js +0 -84
- package/build/test/functional/commands/general/source-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/general/url-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/general/url-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/general/url-e2e-specs.js +0 -77
- package/build/test/functional/commands/general/url-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/keyboard/keyboard-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/keyboard/keyboard-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/keyboard/keyboard-e2e-specs.js +0 -335
- package/build/test/functional/commands/keyboard/keyboard-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/orientation-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/orientation-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/orientation-e2e-specs.js +0 -105
- package/build/test/functional/commands/orientation-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/strings-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/strings-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/strings-e2e-specs.js +0 -77
- package/build/test/functional/commands/strings-e2e-specs.js.map +0 -1
- package/build/test/functional/commands/viewport-e2e-specs.d.ts +0 -2
- package/build/test/functional/commands/viewport-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/commands/viewport-e2e-specs.js +0 -114
- package/build/test/functional/commands/viewport-e2e-specs.js.map +0 -1
- package/build/test/functional/desired.d.ts +0 -21
- package/build/test/functional/desired.d.ts.map +0 -1
- package/build/test/functional/desired.js +0 -64
- package/build/test/functional/desired.js.map +0 -1
- package/build/test/functional/driver-e2e-specs.d.ts +0 -2
- package/build/test/functional/driver-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/driver-e2e-specs.js +0 -117
- package/build/test/functional/driver-e2e-specs.js.map +0 -1
- package/build/test/functional/helpers/constants.d.ts +0 -3
- package/build/test/functional/helpers/constants.d.ts.map +0 -1
- package/build/test/functional/helpers/constants.js +0 -6
- package/build/test/functional/helpers/constants.js.map +0 -1
- package/build/test/functional/helpers/session.d.ts +0 -6
- package/build/test/functional/helpers/session.d.ts.map +0 -1
- package/build/test/functional/helpers/session.js +0 -78
- package/build/test/functional/helpers/session.js.map +0 -1
- package/build/test/unit/commands/general-specs.d.ts +0 -2
- package/build/test/unit/commands/general-specs.d.ts.map +0 -1
- package/build/test/unit/commands/general-specs.js +0 -80
- package/build/test/unit/commands/general-specs.js.map +0 -1
- package/build/test/unit/commands/screenshot-specs.d.ts +0 -2
- package/build/test/unit/commands/screenshot-specs.d.ts.map +0 -1
- package/build/test/unit/commands/screenshot-specs.js +0 -124
- package/build/test/unit/commands/screenshot-specs.js.map +0 -1
- package/build/test/unit/css-converter-specs.d.ts +0 -2
- package/build/test/unit/css-converter-specs.d.ts.map +0 -1
- package/build/test/unit/css-converter-specs.js +0 -65
- package/build/test/unit/css-converter-specs.js.map +0 -1
- package/build/test/unit/driver-specs.d.ts +0 -2
- package/build/test/unit/driver-specs.d.ts.map +0 -1
- package/build/test/unit/driver-specs.js +0 -328
- package/build/test/unit/driver-specs.js.map +0 -1
- package/build/test/unit/uiautomator2-specs.d.ts +0 -2
- package/build/test/unit/uiautomator2-specs.d.ts.map +0 -1
- package/build/test/unit/uiautomator2-specs.js +0 -320
- package/build/test/unit/uiautomator2-specs.js.map +0 -1
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const sharp_1 = __importDefault(require("sharp"));
|
|
40
|
-
const desired_1 = require("../desired");
|
|
41
|
-
const session_1 = require("../helpers/session");
|
|
42
|
-
const chai_1 = __importStar(require("chai"));
|
|
43
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
44
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
45
|
-
describe('testViewportCommands', function () {
|
|
46
|
-
let driver;
|
|
47
|
-
const caps = desired_1.SCROLL_CAPS;
|
|
48
|
-
before(async function () {
|
|
49
|
-
driver = await (0, session_1.initSession)(caps);
|
|
50
|
-
});
|
|
51
|
-
after(async function () {
|
|
52
|
-
if (driver) {
|
|
53
|
-
await (0, session_1.deleteSession)();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
beforeEach(function () {
|
|
57
|
-
(0, session_1.attemptToDismissAlert)(caps);
|
|
58
|
-
});
|
|
59
|
-
it('should get device pixel ratio, status bar height, and viewport rect', async function () {
|
|
60
|
-
if (process.env.CI) {
|
|
61
|
-
return this.skip();
|
|
62
|
-
}
|
|
63
|
-
const { viewportRect, statBarHeight, pixelRatio } = await driver.getSession();
|
|
64
|
-
(0, chai_1.expect)(pixelRatio).not.to.be.empty;
|
|
65
|
-
(0, chai_1.expect)(statBarHeight).to.be.greaterThan(0);
|
|
66
|
-
(0, chai_1.expect)(viewportRect).to.have.keys(['left', 'top', 'width', 'height']);
|
|
67
|
-
});
|
|
68
|
-
it('should get scrollable element', async function () {
|
|
69
|
-
await (0, chai_1.expect)(driver.$('//*[@scrollable="true"]').elementId).to.eventually.exist;
|
|
70
|
-
});
|
|
71
|
-
it('should get content size from scrollable element found as uiobject', async function () {
|
|
72
|
-
if (process.env.CI) {
|
|
73
|
-
return this.skip();
|
|
74
|
-
}
|
|
75
|
-
const scrollableEl = await driver.$('//*[@scrollable="true"]');
|
|
76
|
-
const contentSize = await scrollableEl.getAttribute('contentSize');
|
|
77
|
-
(0, chai_1.expect)(contentSize).to.exist;
|
|
78
|
-
(0, chai_1.expect)(JSON.parse(contentSize).scrollableOffset).to.exist;
|
|
79
|
-
});
|
|
80
|
-
it('should get content size from scrollable element found as uiobject2', async function () {
|
|
81
|
-
if (process.env.CI) {
|
|
82
|
-
return this.skip();
|
|
83
|
-
}
|
|
84
|
-
const scrollableEl = await driver.$('//android.widget.ScrollView');
|
|
85
|
-
const contentSize = await scrollableEl.getAttribute('contentSize');
|
|
86
|
-
(0, chai_1.expect)(contentSize).to.exist;
|
|
87
|
-
(0, chai_1.expect)(JSON.parse(contentSize).scrollableOffset).to.exist;
|
|
88
|
-
});
|
|
89
|
-
it('should get first element from scrollable element', async function () {
|
|
90
|
-
if (process.env.CI) {
|
|
91
|
-
return this.skip();
|
|
92
|
-
}
|
|
93
|
-
const scrollableEl = await driver.$('//*[@scrollable="true"]');
|
|
94
|
-
await (0, chai_1.expect)(scrollableEl.$('/*[@firstVisible="true"]').elementId).to.eventually.exist;
|
|
95
|
-
});
|
|
96
|
-
it('should get a cropped screenshot of the viewport without statusbar', async function () {
|
|
97
|
-
// TODO: fails on CI with a `Does the current view have 'secure' flag set?` error
|
|
98
|
-
if (process.env.CI) {
|
|
99
|
-
return this.skip();
|
|
100
|
-
}
|
|
101
|
-
const { viewportRect, statBarHeight } = await driver.getSession();
|
|
102
|
-
const fullScreen = await driver.takeScreenshot();
|
|
103
|
-
const viewScreen = await driver.execute('mobile: viewportScreenshot');
|
|
104
|
-
const fullB64 = Buffer.from(fullScreen, 'base64');
|
|
105
|
-
const viewB64 = Buffer.from(viewScreen, 'base64');
|
|
106
|
-
const fullImgMeta = await (0, sharp_1.default)(fullB64).metadata();
|
|
107
|
-
const viewImgMeta = await (0, sharp_1.default)(viewB64).metadata();
|
|
108
|
-
(0, chai_1.expect)(viewportRect.top).to.eql(statBarHeight);
|
|
109
|
-
(0, chai_1.expect)(viewImgMeta.height).to.eql(viewportRect.height);
|
|
110
|
-
(0, chai_1.expect)(viewImgMeta.width).to.eql(fullImgMeta.width);
|
|
111
|
-
(0, chai_1.expect)(fullImgMeta.height).to.be.above(viewImgMeta.height);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
//# sourceMappingURL=viewport-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-e2e-specs.js","sourceRoot":"","sources":["../../../../test/functional/commands/viewport-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA0B;AAC1B,wCAAuC;AACvC,gDAAqF;AACrF,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,QAAQ,CAAC,sBAAsB,EAAE;IAC/B,IAAI,MAAe,CAAC;IACpB,MAAM,IAAI,GAAG,qBAAW,CAAC;IAEzB,MAAM,CAAC,KAAK;QACV,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,KAAK;QACT,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,IAAA,uBAAa,GAAE,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,UAAU,CAAC;QACT,IAAA,+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;QACvE,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,cAAc,EAAE,CAAC;QACjD,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;QACtE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAClD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,UAAoB,EAAE,QAAQ,CAAC,CAAC;QAC5D,MAAM,WAAW,GAAG,MAAM,IAAA,eAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,MAAM,WAAW,GAAG,MAAM,IAAA,eAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpD,IAAA,aAAM,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC/C,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACvD,IAAA,aAAM,EAAC,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACpD,IAAA,aAAM,EAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,MAAO,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const APIDEMOS_PACKAGE = "io.appium.android.apis";
|
|
2
|
-
export declare const APIDEMOS_MAIN_ACTIVITY = ".ApiDemos";
|
|
3
|
-
export declare const APIDEMOS_SCROLL_ACTIVITY = ".view.ScrollView2";
|
|
4
|
-
export declare function amendCapabilities(baseCaps: any, ...newCaps: any[]): any;
|
|
5
|
-
export declare const GENERIC_CAPS: {
|
|
6
|
-
firstMatch: {}[];
|
|
7
|
-
alwaysMatch: {
|
|
8
|
-
'appium:deviceName': string;
|
|
9
|
-
platformName: string;
|
|
10
|
-
'appium:uiautomator2ServerLaunchTimeout': number;
|
|
11
|
-
'appium:uiautomator2ServerInstallTimeout': number;
|
|
12
|
-
'appium:automationName': string;
|
|
13
|
-
'appium:adbExecTimeout': number;
|
|
14
|
-
'appium:ignoreHiddenApiPolicyError': boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const APIDEMOS_CAPS: any;
|
|
18
|
-
export declare const SCROLL_CAPS: any;
|
|
19
|
-
export declare const BROWSER_CAPS: any;
|
|
20
|
-
export declare const SETTINGS_CAPS: any;
|
|
21
|
-
//# sourceMappingURL=desired.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desired.d.ts","sourceRoot":"","sources":["../../../test/functional/desired.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAa5D,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAKvE;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;CAWvB,CAAC;AAEH,eAAO,MAAM,aAAa,KAKxB,CAAC;AAEH,eAAO,MAAM,WAAW,KAItB,CAAC;AAEH,eAAO,MAAM,YAAY,KAEvB,CAAC;AAEH,eAAO,MAAM,aAAa,KAGxB,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SETTINGS_CAPS = exports.BROWSER_CAPS = exports.SCROLL_CAPS = exports.APIDEMOS_CAPS = exports.GENERIC_CAPS = exports.APIDEMOS_SCROLL_ACTIVITY = exports.APIDEMOS_MAIN_ACTIVITY = exports.APIDEMOS_PACKAGE = void 0;
|
|
7
|
-
exports.amendCapabilities = amendCapabilities;
|
|
8
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
-
const uiautomator2ServerLaunchTimeout = process.env.CI ? 60000 : 20000;
|
|
10
|
-
const uiautomator2ServerInstallTimeout = process.env.CI ? 120000 : 20000;
|
|
11
|
-
const ADB_EXEC_TIMEOUT = process.env.CI ? 60000 : 20000;
|
|
12
|
-
// ApiDemos APK URL from GitHub releases
|
|
13
|
-
const API_DEMOS_APK_URL = 'https://github.com/appium/android-apidemos/releases/download/v6.0.2/ApiDemos-debug.apk';
|
|
14
|
-
// ApiDemos package and activity constants
|
|
15
|
-
exports.APIDEMOS_PACKAGE = 'io.appium.android.apis';
|
|
16
|
-
exports.APIDEMOS_MAIN_ACTIVITY = '.ApiDemos';
|
|
17
|
-
exports.APIDEMOS_SCROLL_ACTIVITY = '.view.ScrollView2';
|
|
18
|
-
function deepFreeze(object) {
|
|
19
|
-
const propNames = Object.getOwnPropertyNames(object);
|
|
20
|
-
for (const name of propNames) {
|
|
21
|
-
const value = object[name];
|
|
22
|
-
if (value && typeof value === 'object') {
|
|
23
|
-
deepFreeze(value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return Object.freeze(object);
|
|
27
|
-
}
|
|
28
|
-
function amendCapabilities(baseCaps, ...newCaps) {
|
|
29
|
-
return deepFreeze({
|
|
30
|
-
alwaysMatch: lodash_1.default.cloneDeep(Object.assign({}, baseCaps.alwaysMatch, ...newCaps)),
|
|
31
|
-
firstMatch: [{}],
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
exports.GENERIC_CAPS = deepFreeze({
|
|
35
|
-
firstMatch: [{}],
|
|
36
|
-
alwaysMatch: {
|
|
37
|
-
'appium:deviceName': 'Android',
|
|
38
|
-
platformName: 'Android',
|
|
39
|
-
'appium:uiautomator2ServerLaunchTimeout': uiautomator2ServerLaunchTimeout,
|
|
40
|
-
'appium:uiautomator2ServerInstallTimeout': uiautomator2ServerInstallTimeout,
|
|
41
|
-
'appium:automationName': 'uiautomator2',
|
|
42
|
-
'appium:adbExecTimeout': ADB_EXEC_TIMEOUT,
|
|
43
|
-
'appium:ignoreHiddenApiPolicyError': true,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
exports.APIDEMOS_CAPS = amendCapabilities(exports.GENERIC_CAPS, {
|
|
47
|
-
'appium:app': API_DEMOS_APK_URL,
|
|
48
|
-
'appium:appPackage': exports.APIDEMOS_PACKAGE,
|
|
49
|
-
'appium:appActivity': exports.APIDEMOS_MAIN_ACTIVITY,
|
|
50
|
-
'appium:disableWindowAnimation': true,
|
|
51
|
-
});
|
|
52
|
-
exports.SCROLL_CAPS = amendCapabilities(exports.GENERIC_CAPS, {
|
|
53
|
-
'appium:app': API_DEMOS_APK_URL,
|
|
54
|
-
'appium:appPackage': exports.APIDEMOS_PACKAGE,
|
|
55
|
-
'appium:appActivity': exports.APIDEMOS_SCROLL_ACTIVITY,
|
|
56
|
-
});
|
|
57
|
-
exports.BROWSER_CAPS = amendCapabilities(exports.GENERIC_CAPS, {
|
|
58
|
-
browserName: 'Chrome',
|
|
59
|
-
});
|
|
60
|
-
exports.SETTINGS_CAPS = amendCapabilities(exports.GENERIC_CAPS, {
|
|
61
|
-
'appium:appPackage': 'com.android.settings',
|
|
62
|
-
'appium:appActivity': '.Settings',
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=desired.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desired.js","sourceRoot":"","sources":["../../../test/functional/desired.ts"],"names":[],"mappings":";;;;;;AA0BA,8CAKC;AA/BD,oDAAuB;AAEvB,MAAM,+BAA+B,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,C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,SAAS;QAC9B,YAAY,EAAE,SAAS;QACvB,wCAAwC,EAAE,+BAA+B;QACzE,yCAAyC,EAAE,gCAAgC;QAC3E,uBAAuB,EAAE,cAAc;QACvC,uBAAuB,EAAE,gBAAgB;QACzC,mCAAmC,EAAE,IAAI;KAC1C;CACF,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,iBAAiB,CAAC,oBAAY,EAAE;IAC3D,YAAY,EAAE,iBAAiB;IAC/B,mBAAmB,EAAE,wBAAgB;IACrC,oBAAoB,EAAE,8BAAsB;IAC5C,+BAA+B,EAAE,IAAI;CACtC,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,iBAAiB,CAAC,oBAAY,EAAE;IACzD,YAAY,EAAE,iBAAiB;IAC/B,mBAAmB,EAAE,wBAAgB;IACrC,oBAAoB,EAAE,gCAAwB;CAC/C,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,iBAAiB,CAAC,oBAAY,EAAE;IAC1D,WAAW,EAAE,QAAQ;CACtB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,iBAAiB,CAAC,oBAAY,EAAE;IAC3D,mBAAmB,EAAE,sBAAsB;IAC3C,oBAAoB,EAAE,WAAW;CAClC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver-e2e-specs.d.ts","sourceRoot":"","sources":["../../../test/functional/driver-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const appium_adb_1 = require("appium-adb");
|
|
40
|
-
const desired_1 = require("./desired");
|
|
41
|
-
const session_1 = require("./helpers/session");
|
|
42
|
-
const bluebird_1 = __importDefault(require("bluebird"));
|
|
43
|
-
const asyncbox_1 = require("asyncbox");
|
|
44
|
-
const chai_1 = __importStar(require("chai"));
|
|
45
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
46
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
47
|
-
const APIDEMOS_SPLIT_TOUCH_ACTIVITY = '.view.SplitTouchView';
|
|
48
|
-
const DEFAULT_ADB_PORT = 5037;
|
|
49
|
-
async function killAndPrepareServer(oldPort, newPort) {
|
|
50
|
-
const oldAdb = await appium_adb_1.ADB.createADB({ adbPort: oldPort });
|
|
51
|
-
await oldAdb.killServer();
|
|
52
|
-
if (process.env.CI) {
|
|
53
|
-
// on Travis this takes a while to get into a good state
|
|
54
|
-
await bluebird_1.default.delay(10000);
|
|
55
|
-
}
|
|
56
|
-
const newAdb = await appium_adb_1.ADB.createADB({ adbPort: newPort });
|
|
57
|
-
await (0, asyncbox_1.retryInterval)(5, 500, async () => await newAdb.getApiLevel());
|
|
58
|
-
}
|
|
59
|
-
describe('createSession', function () {
|
|
60
|
-
let driver;
|
|
61
|
-
describe('default adb port', function () {
|
|
62
|
-
afterEach(async function () {
|
|
63
|
-
await (0, session_1.deleteSession)();
|
|
64
|
-
});
|
|
65
|
-
it('should start android session focusing on default pkg and act', async function () {
|
|
66
|
-
driver = await (0, session_1.initSession)(desired_1.APIDEMOS_CAPS);
|
|
67
|
-
await (0, chai_1.expect)(driver.getCurrentPackage()).to.eventually.equal(desired_1.APIDEMOS_PACKAGE);
|
|
68
|
-
await (0, chai_1.expect)(driver.getCurrentActivity()).to.eventually.equal(desired_1.APIDEMOS_MAIN_ACTIVITY);
|
|
69
|
-
});
|
|
70
|
-
it('should start android session focusing on custom pkg and act', async function () {
|
|
71
|
-
const caps = (0, desired_1.amendCapabilities)(desired_1.APIDEMOS_CAPS, {
|
|
72
|
-
'appium:appPackage': desired_1.APIDEMOS_PACKAGE,
|
|
73
|
-
'appium:appActivity': APIDEMOS_SPLIT_TOUCH_ACTIVITY,
|
|
74
|
-
});
|
|
75
|
-
driver = await (0, session_1.initSession)(caps);
|
|
76
|
-
await (0, chai_1.expect)(driver.getCurrentPackage()).to.eventually.equal(desired_1.APIDEMOS_PACKAGE);
|
|
77
|
-
await (0, chai_1.expect)(driver.getCurrentActivity()).to.eventually.equal(APIDEMOS_SPLIT_TOUCH_ACTIVITY);
|
|
78
|
-
});
|
|
79
|
-
it('should error out for not apk extension', async function () {
|
|
80
|
-
const caps = (0, desired_1.amendCapabilities)(desired_1.APIDEMOS_CAPS, {
|
|
81
|
-
'appium:app': 'foo',
|
|
82
|
-
'appium:appPackage': desired_1.APIDEMOS_PACKAGE,
|
|
83
|
-
'appium:appActivity': APIDEMOS_SPLIT_TOUCH_ACTIVITY,
|
|
84
|
-
});
|
|
85
|
-
await (0, chai_1.expect)((0, session_1.initSession)(caps)).to.eventually.be.rejectedWith(/does not exist or is not accessible/);
|
|
86
|
-
});
|
|
87
|
-
it('should error out for invalid app path', async function () {
|
|
88
|
-
const caps = (0, desired_1.amendCapabilities)(desired_1.APIDEMOS_CAPS, {
|
|
89
|
-
'appium:app': 'foo.apk',
|
|
90
|
-
'appium:appPackage': desired_1.APIDEMOS_PACKAGE,
|
|
91
|
-
'appium:appActivity': APIDEMOS_SPLIT_TOUCH_ACTIVITY,
|
|
92
|
-
});
|
|
93
|
-
await (0, chai_1.expect)((0, session_1.initSession)(caps)).to.eventually.be.rejectedWith(/does not exist or is not accessible/);
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
describe('custom adb port', function () {
|
|
97
|
-
const adbPort = 5042;
|
|
98
|
-
let driver;
|
|
99
|
-
beforeEach(async function () {
|
|
100
|
-
await killAndPrepareServer(DEFAULT_ADB_PORT, adbPort);
|
|
101
|
-
});
|
|
102
|
-
afterEach(async function () {
|
|
103
|
-
await (0, session_1.deleteSession)();
|
|
104
|
-
await killAndPrepareServer(adbPort, DEFAULT_ADB_PORT);
|
|
105
|
-
});
|
|
106
|
-
it('should start android session with a custom adb port', async function () {
|
|
107
|
-
const caps = (0, desired_1.amendCapabilities)(desired_1.APIDEMOS_CAPS, {
|
|
108
|
-
'appium:adbPort': adbPort,
|
|
109
|
-
'appium:allowOfflineDevices': true,
|
|
110
|
-
});
|
|
111
|
-
driver = await (0, session_1.initSession)(caps, { adbPort });
|
|
112
|
-
await (0, chai_1.expect)(driver.getCurrentPackage()).to.eventually.equal(desired_1.APIDEMOS_PACKAGE);
|
|
113
|
-
await (0, chai_1.expect)(driver.getCurrentActivity()).to.eventually.equal(desired_1.APIDEMOS_MAIN_ACTIVITY);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
//# sourceMappingURL=driver-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver-e2e-specs.js","sourceRoot":"","sources":["../../../test/functional/driver-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA+B;AAC/B,uCAAqG;AACrG,+CAA6D;AAC7D,wDAAyB;AACzB,uCAAuC;AACvC,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,MAAM,6BAA6B,GAAG,sBAAsB,CAAC;AAE7D,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAE9B,KAAK,UAAU,oBAAoB,CAAC,OAAe,EAAE,OAAe;IAClE,MAAM,MAAM,GAAG,MAAM,gBAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IACvD,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;IAC1B,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACnB,wDAAwD;QACxD,MAAM,kBAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,gBAAG,CAAC,SAAS,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IACvD,MAAM,IAAA,wBAAa,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC;AAED,QAAQ,CAAC,eAAe,E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,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,0BAAgB,CAAC,CAAC;YAC/E,MAAM,IAAA,aAAM,EAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,gCAAsB,CAAC,CAAC;QACxF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../test/functional/helpers/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAA8D,CAAC;AACxF,eAAO,MAAM,YAAY,QAAqD,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_HOST = exports.DEFAULT_PORT = void 0;
|
|
4
|
-
exports.DEFAULT_PORT = parseInt(process.env.APPIUM_TEST_SERVER_PORT || '4567', 10);
|
|
5
|
-
exports.DEFAULT_HOST = process.env.APPIUM_TEST_SERVER_HOST || '127.0.0.1';
|
|
6
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../test/functional/helpers/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;AAC3E,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { StringRecord } from '@appium/types';
|
|
2
|
-
import type { Browser } from 'webdriverio';
|
|
3
|
-
export declare function initSession(caps: StringRecord, remoteOpts?: StringRecord): Promise<Browser>;
|
|
4
|
-
export declare function attemptToDismissAlert(caps: StringRecord): Promise<void>;
|
|
5
|
-
export declare function deleteSession(): Promise<void>;
|
|
6
|
-
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../test/functional/helpers/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAYzC,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,GAAE,YAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAqBrG;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmC7E;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAUnD"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initSession = initSession;
|
|
4
|
-
exports.attemptToDismissAlert = attemptToDismissAlert;
|
|
5
|
-
exports.deleteSession = deleteSession;
|
|
6
|
-
const constants_1 = require("./constants");
|
|
7
|
-
const logger_1 = require("../../../lib/logger");
|
|
8
|
-
const webdriverio_1 = require("webdriverio");
|
|
9
|
-
const asyncbox_1 = require("asyncbox");
|
|
10
|
-
const INIT_RETRIES = process.env.CI ? 2 : 1;
|
|
11
|
-
const ALERT_CHECK_RETRIES = 5;
|
|
12
|
-
const ALERT_CHECK_INTERVAL = 1000;
|
|
13
|
-
let driver;
|
|
14
|
-
async function initSession(caps, remoteOpts = {}) {
|
|
15
|
-
// Create the driver
|
|
16
|
-
const host = constants_1.DEFAULT_HOST;
|
|
17
|
-
const port = constants_1.DEFAULT_PORT;
|
|
18
|
-
const opts = Object.assign({}, remoteOpts, {
|
|
19
|
-
hostname: host,
|
|
20
|
-
port,
|
|
21
|
-
capabilities: caps,
|
|
22
|
-
});
|
|
23
|
-
logger_1.log.debug(`Starting session on ${host}:${port}`);
|
|
24
|
-
const sessionDriver = await (0, asyncbox_1.retry)(INIT_RETRIES, async (x) => await (0, webdriverio_1.remote)(x), opts);
|
|
25
|
-
if (!sessionDriver) {
|
|
26
|
-
throw new Error('Failed to create session');
|
|
27
|
-
}
|
|
28
|
-
driver = sessionDriver;
|
|
29
|
-
attemptToDismissAlert(caps);
|
|
30
|
-
await sessionDriver.setTimeout({ implicit: process.env.CI ? 30000 : 5000 });
|
|
31
|
-
return sessionDriver;
|
|
32
|
-
}
|
|
33
|
-
async function attemptToDismissAlert(caps) {
|
|
34
|
-
// In CI environment, the alert "System UI isn't responding" may appear due to less machine resources.
|
|
35
|
-
if (process.env.CI && driver) {
|
|
36
|
-
for (const btnId of ['android:id/button1', 'android:id/aerr_wait']) {
|
|
37
|
-
let alertFound = false;
|
|
38
|
-
await (0, asyncbox_1.retryInterval)(ALERT_CHECK_RETRIES, ALERT_CHECK_INTERVAL, async function () {
|
|
39
|
-
let btn;
|
|
40
|
-
try {
|
|
41
|
-
btn = await driver.$(`id=${btnId}`);
|
|
42
|
-
alertFound = true;
|
|
43
|
-
}
|
|
44
|
-
catch {
|
|
45
|
-
// no element found, so just finish
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
logger_1.log.warn('*******************************************************');
|
|
49
|
-
logger_1.log.warn('*******************************************************');
|
|
50
|
-
logger_1.log.warn('*******************************************************');
|
|
51
|
-
logger_1.log.warn('Alert found on session startup. Trying to dismiss alert');
|
|
52
|
-
logger_1.log.warn('*******************************************************');
|
|
53
|
-
logger_1.log.warn('*******************************************************');
|
|
54
|
-
logger_1.log.warn('*******************************************************');
|
|
55
|
-
await btn.click();
|
|
56
|
-
throw new Error('Alert was found, retry');
|
|
57
|
-
});
|
|
58
|
-
// if an alert was ever found, try to start the activity that the session should have started
|
|
59
|
-
if (alertFound && driver) {
|
|
60
|
-
await driver.startActivity(caps.alwaysMatch?.['appium:appPackage'], caps.alwaysMatch?.['appium:appActivity'], caps.alwaysMatch?.['appium:appWaitPackage'], caps.alwaysMatch?.['appium:appWaitActivity']);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
async function deleteSession() {
|
|
66
|
-
try {
|
|
67
|
-
if (driver) {
|
|
68
|
-
await driver.deleteSession();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
catch {
|
|
72
|
-
// ignore
|
|
73
|
-
}
|
|
74
|
-
finally {
|
|
75
|
-
driver = undefined;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=session.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../test/functional/helpers/session.ts"],"names":[],"mappings":";;AAaA,kCAqBC;AAED,sDAmCC;AAED,sCAUC;AAjFD,2CAAuD;AACvD,gDAAkD;AAClD,6CAAmC;AACnC,uCAA8C;AAE9C,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAC9B,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAElC,IAAI,MAA2B,CAAC;AAEzB,KAAK,UAAU,WAAW,CAAC,IAAkB,EAAE,aAA2B,EAAE;IACjF,oBAAoB;IACpB,MAAM,IAAI,GAAG,wBAAY,CAAC;IAC1B,MAAM,IAAI,GAAG,wBAAY,CAAC;IAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE;QACzC,QAAQ,EAAE,IAAI;QACd,IAAI;QACJ,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,YAAM,CAAC,KAAK,CAAC,uBAAuB,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;IACp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D,CAAC,CAAC;gBACvE,YAAM,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;gBACvE,YAAM,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;gBACvE,YAAM,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;gBACvE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;gBAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAC5C,CAAC,CAAC,CAAC;YACH,6FAA6F;YAC7F,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,MAAM,CAAC,aAAa,CACxB,IAAI,CAAC,WAAW,EAAE,CAAC,mBAAmB,CAAW,EACjD,IAAI,CAAC,WAAW,EAAE,CAAC,oBAAoB,CAAW,EAClD,IAAI,CAAC,WAAW,EAAE,CAAC,uBAAuB,CAAuB,EACjE,IAAI,CAAC,WAAW,EAAE,CAAC,wBAAwB,CAAuB,CACnE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,aAAa;IACjC,IAAI,CAAC;QACH,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,SAAS;IACX,CAAC;YAAS,CAAC;QACT,MAAM,GAAG,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-specs.d.ts","sourceRoot":"","sources":["../../../../test/unit/commands/general-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const sinon_1 = __importDefault(require("sinon"));
|
|
7
|
-
const driver_1 = require("../../../lib/driver");
|
|
8
|
-
const appium_adb_1 = require("appium-adb");
|
|
9
|
-
const chai_1 = __importDefault(require("chai"));
|
|
10
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
11
|
-
const { expect } = chai_1.default;
|
|
12
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
13
|
-
describe('General', function () {
|
|
14
|
-
let driver;
|
|
15
|
-
let mockDriver;
|
|
16
|
-
beforeEach(function () {
|
|
17
|
-
driver = new driver_1.AndroidUiautomator2Driver();
|
|
18
|
-
mockDriver = sinon_1.default.mock(driver);
|
|
19
|
-
});
|
|
20
|
-
afterEach(function () {
|
|
21
|
-
mockDriver.verify();
|
|
22
|
-
});
|
|
23
|
-
describe('getWindowRect', function () {
|
|
24
|
-
it('should get window size', async function () {
|
|
25
|
-
mockDriver.expects('getWindowSize').once().returns({ width: 300, height: 400 });
|
|
26
|
-
const result = await driver.getWindowRect();
|
|
27
|
-
expect(result).to.eql({
|
|
28
|
-
width: 300,
|
|
29
|
-
height: 400,
|
|
30
|
-
x: 0,
|
|
31
|
-
y: 0,
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
describe('mobile command', function () {
|
|
36
|
-
it('should raise error on non-existent mobile command', async function () {
|
|
37
|
-
await expect(driver.execute('mobile: fruta', {})).to.be.rejectedWith(/Unsupported/);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
describe('mobile: sensorSet', function () {
|
|
41
|
-
// note: this test does not depend on whether or not isEmulator returns
|
|
42
|
-
// true, because the "am I an emulator?" check happens in the sensorSet
|
|
43
|
-
// implementation, which is stubbed out.
|
|
44
|
-
it('should call sensorSet', async function () {
|
|
45
|
-
mockDriver.expects('sensorSet').once().withArgs('acceleration', '0:9.77631:0.812349');
|
|
46
|
-
await driver.execute('mobile: sensorSet', {
|
|
47
|
-
sensorType: 'acceleration',
|
|
48
|
-
value: '0:9.77631:0.812349',
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
describe('mobile: installMultipleApks', function () {
|
|
53
|
-
let adb;
|
|
54
|
-
let mockHelpers;
|
|
55
|
-
let mockAdb;
|
|
56
|
-
beforeEach(function () {
|
|
57
|
-
adb = new appium_adb_1.ADB();
|
|
58
|
-
mockAdb = sinon_1.default.mock(adb);
|
|
59
|
-
driver = new driver_1.AndroidUiautomator2Driver();
|
|
60
|
-
driver.adb = adb;
|
|
61
|
-
mockHelpers = sinon_1.default.mock(driver.helpers);
|
|
62
|
-
mockHelpers.expects('configureApp').returns('/path/to/test/apk.apk');
|
|
63
|
-
});
|
|
64
|
-
afterEach(function () {
|
|
65
|
-
mockHelpers.restore();
|
|
66
|
-
mockAdb.verify();
|
|
67
|
-
});
|
|
68
|
-
it('should call mobileInstallMultipleApks', async function () {
|
|
69
|
-
mockAdb.expects('installMultipleApks').once().withExactArgs(['/path/to/test/apk.apk'], undefined);
|
|
70
|
-
await driver.execute('mobile: installMultipleApks', { apks: ['/path/to/test/apk.apk'] });
|
|
71
|
-
});
|
|
72
|
-
it('should reject if no apks were given', async function () {
|
|
73
|
-
await expect(driver.execute('mobile: installMultipleApks', { apks: [] })).to.be.rejectedWith('No apks are given to install');
|
|
74
|
-
});
|
|
75
|
-
it('should reject with default args', async function () {
|
|
76
|
-
await expect(driver.execute('mobile: installMultipleApks')).to.be.rejected;
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=general-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-specs.js","sourceRoot":"","sources":["../../../../test/unit/commands/general-specs.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,gDAA8D;AAC9D,2CAAiC;AACjC,gDAAwB;AACxB,wEAA8C;AAE9C,MAAM,EAAC,MAAM,EAAC,GAAG,cAAI,CAAC;AACtB,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AA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