appium-uiautomator2-driver 6.7.10 → 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 +6 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +50 -21
- package/package.json +3 -2
- 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,79 +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 desired_1 = require("../../desired");
|
|
40
|
-
const session_1 = require("../../helpers/session");
|
|
41
|
-
const chai_1 = __importStar(require("chai"));
|
|
42
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
43
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
44
|
-
describe('mobile', function () {
|
|
45
|
-
let driver;
|
|
46
|
-
before(async function () {
|
|
47
|
-
driver = await (0, session_1.initSession)(desired_1.APIDEMOS_CAPS);
|
|
48
|
-
});
|
|
49
|
-
after(async function () {
|
|
50
|
-
await (0, session_1.deleteSession)();
|
|
51
|
-
});
|
|
52
|
-
describe('mobile:shell', function () {
|
|
53
|
-
it('should call execute command without proxy error, but require relaxed security flag', async function () {
|
|
54
|
-
try {
|
|
55
|
-
await driver.execute('mobile: shell', { command: 'echo', args: ['hello'] });
|
|
56
|
-
}
|
|
57
|
-
catch (e) {
|
|
58
|
-
(0, chai_1.expect)(e.message).to.match(/Potentially insecure feature 'adb_shell' has not been enabled/);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
describe('mobile:broadcast', function () {
|
|
63
|
-
it('should call broadcast', async function () {
|
|
64
|
-
const output = await driver.execute('mobile: broadcast', {
|
|
65
|
-
action: 'io.appium.settings.sms.read',
|
|
66
|
-
extras: [['s', 'max', '10']],
|
|
67
|
-
});
|
|
68
|
-
(0, chai_1.expect)(output).to.include('result=-1');
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
describe('mobile:batteryInfo', function () {
|
|
72
|
-
it('should get battery info', async function () {
|
|
73
|
-
const { level, state } = await driver.execute('mobile: batteryInfo', {});
|
|
74
|
-
(0, chai_1.expect)(level).to.be.greaterThan(0.0);
|
|
75
|
-
(0, chai_1.expect)(state).to.be.greaterThan(1);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=mobile-command-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-command-e2e-specs.js","sourceRoot":"","sources":["../../../../../test/functional/commands/general/mobile-command-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA4C;AAC5C,mDAAiE;AACjE,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,QAAQ,CAAC,QAAQ,EAAE;IACjB,IAAI,MAAe,CAAC;IAEpB,MAAM,CAAC,KAAK;QACV,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,uBAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,KAAK;QACT,MAAM,IAAA,uBAAa,GAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,cAAc,EAAE;QACvB,EAAE,CAAC,oFAAoF,EAAE,KAAK;YAC5F,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAC,CAAC,CAAC;YAC5E,CAAC;YAAC,OAAO,CAAM,EAAE,CAAC;gBAChB,IAAA,aAAM,EAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YAC9F,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,kBAAkB,EAAE;QAC3B,EAAE,CAAC,uBAAuB,EAAE,KAAK;YAC/B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE;gBACvD,MAAM,EAAE,6BAA6B;gBACrC,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;aAC7B,CAAC,CAAC;YACH,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,oBAAoB,EAAE;QAC7B,EAAE,CAAC,yBAAyB,EAAE,KAAK;YACjC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAmC,CAAC;YACzG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACrC,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-e2e-specs.d.ts","sourceRoot":"","sources":["../../../../../test/functional/commands/general/network-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,62 +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 desired_1 = require("../../desired");
|
|
40
|
-
const session_1 = require("../../helpers/session");
|
|
41
|
-
const chai_1 = __importStar(require("chai"));
|
|
42
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
43
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
44
|
-
describe('wifi @skip-ci', function () {
|
|
45
|
-
let driver;
|
|
46
|
-
before(async function () {
|
|
47
|
-
const caps = (0, desired_1.amendCapabilities)(desired_1.APIDEMOS_CAPS, {
|
|
48
|
-
'appium:appActivity': '.view.TextFields',
|
|
49
|
-
});
|
|
50
|
-
driver = await (0, session_1.initSession)(caps);
|
|
51
|
-
});
|
|
52
|
-
after(async function () {
|
|
53
|
-
await (0, session_1.deleteSession)();
|
|
54
|
-
});
|
|
55
|
-
it.skip('should enable WIFI', async function () {
|
|
56
|
-
// TODO: This is returning Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE from pid=25928, uid=2000; also isWifiOn is not a method
|
|
57
|
-
const WIFI = 2;
|
|
58
|
-
await driver.setNetworkConnection({ type: WIFI });
|
|
59
|
-
await (0, chai_1.expect)(driver.isWifiOn()).to.eventually.equal(true);
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=network-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-e2e-specs.js","sourceRoot":"","sources":["../../../../../test/functional/commands/general/network-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA+D;AAC/D,mDAAiE;AACjE,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,QAAQ,CAAC,eAAe,EAAE;IACxB,IAAI,MAAe,CAAC;IACpB,MAAM,CAAC,KAAK;QACV,MAAM,IAAI,GAAG,IAAA,2BAAiB,EAAC,uBAAa,EAAE;YAC5C,oBAAoB,EAAE,kBAAkB;SACzC,CAAC,CAAC;QACH,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,KAAK;QACT,MAAM,IAAA,uBAAa,GAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK;QACjC,uKAAuK;QACvK,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,MAAM,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAE,IAAI,EAAQ,CAAC,CAAC;QACvD,MAAM,IAAA,aAAM,EAAE,MAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-e2e-specs.d.ts","sourceRoot":"","sources":["../../../../../test/functional/commands/general/source-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,84 +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 xmldom_1 = require("@xmldom/xmldom");
|
|
40
|
-
const xpath_1 = __importDefault(require("xpath"));
|
|
41
|
-
const desired_1 = require("../../desired");
|
|
42
|
-
const session_1 = require("../../helpers/session");
|
|
43
|
-
const chai_1 = __importStar(require("chai"));
|
|
44
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
45
|
-
chai_1.default.use(chai_as_promised_1.default);
|
|
46
|
-
describe('apidemo - source', function () {
|
|
47
|
-
let driver;
|
|
48
|
-
before(async function () {
|
|
49
|
-
driver = await (0, session_1.initSession)(desired_1.APIDEMOS_CAPS);
|
|
50
|
-
});
|
|
51
|
-
after(async function () {
|
|
52
|
-
await (0, session_1.deleteSession)();
|
|
53
|
-
});
|
|
54
|
-
function assertSource(source) {
|
|
55
|
-
(0, chai_1.expect)(source).to.exist;
|
|
56
|
-
const dom = new xmldom_1.DOMParser().parseFromString(source, 'text/xml');
|
|
57
|
-
const nodes = xpath_1.default.select('//hierarchy', dom);
|
|
58
|
-
if (nodes && Array.isArray(nodes)) {
|
|
59
|
-
(0, chai_1.expect)(nodes.length).to.equal(1);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
(0, chai_1.expect)(nodes).to.exist;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
it('should return the page source', async function () {
|
|
66
|
-
const source = await driver.getPageSource();
|
|
67
|
-
assertSource(source);
|
|
68
|
-
});
|
|
69
|
-
it('should get less source when compression is enabled', async function () {
|
|
70
|
-
const getSourceWithoutCompression = async () => {
|
|
71
|
-
await driver.updateSettings({ ignoreUnimportantViews: false });
|
|
72
|
-
return await driver.getPageSource();
|
|
73
|
-
};
|
|
74
|
-
const getSourceWithCompression = async () => {
|
|
75
|
-
await driver.updateSettings({ ignoreUnimportantViews: true });
|
|
76
|
-
return await driver.getPageSource();
|
|
77
|
-
};
|
|
78
|
-
const sourceWithoutCompression = await getSourceWithoutCompression();
|
|
79
|
-
const sourceWithCompression = await getSourceWithCompression();
|
|
80
|
-
(0, chai_1.expect)(sourceWithoutCompression.length).to.be.greaterThan(sourceWithCompression.length);
|
|
81
|
-
await (0, chai_1.expect)(getSourceWithoutCompression()).to.eventually.eql(sourceWithoutCompression);
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=source-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-e2e-specs.js","sourceRoot":"","sources":["../../../../../test/functional/commands/general/source-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAAyC;AACzC,kDAA0B;AAC1B,2CAA4C;AAC5C,mDAAiE;AACjE,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,IAAI,MAAe,CAAC;IAEpB,MAAM,CAAC,KAAK;QACV,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,uBAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,KAAK;QACT,MAAM,IAAA,uBAAa,GAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,SAAS,YAAY,CAAC,MAAc;QAClC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;QACxB,MAAM,GAAG,GAAG,IAAI,kBAAS,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;QAC/C,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAClC,IAAA,aAAM,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC;aAAM,CAAC;YACN,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;QACzB,CAAC;IACH,CAAC;IAED,EAAE,CAAC,+BAA+B,EAAE,KAAK;QACvC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;QAC5C,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,oDAAoD,EAAE,KAAK;QAC5D,MAAM,2BAA2B,GAAG,KAAK,IAAI,EAAE;YAC7C,MAAM,MAAM,CAAC,cAAc,CAAC,EAAC,sBAAsB,EAAE,KAAK,EAAC,CAAC,CAAC;YAC7D,OAAO,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;QACtC,CAAC,CAAC;QACF,MAAM,wBAAwB,GAAG,KAAK,IAAI,EAAE;YAC1C,MAAM,MAAM,CAAC,cAAc,CAAC,EAAC,sBAAsB,EAAE,IAAI,EAAC,CAAC,CAAC;YAC5D,OAAO,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;QACtC,CAAC,CAAC;QACF,MAAM,wBAAwB,GAAG,MAAM,2BAA2B,EAAE,CAAC;QACrE,MAAM,qBAAqB,GAAG,MAAM,wBAAwB,EAAE,CAAC;QAC/D,IAAA,aAAM,EAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACxF,MAAM,IAAA,aAAM,EAAC,2BAA2B,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAC1F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-e2e-specs.d.ts","sourceRoot":"","sources":["../../../../../test/functional/commands/general/url-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,77 +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 desired_1 = require("../../desired");
|
|
40
|
-
const session_1 = require("../../helpers/session");
|
|
41
|
-
const appium_adb_1 = require("appium-adb");
|
|
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('setUrl', function () {
|
|
46
|
-
let driver;
|
|
47
|
-
before(async function () {
|
|
48
|
-
const adb = new appium_adb_1.ADB();
|
|
49
|
-
const hasChrome = await adb.isAppInstalled('com.android.chrome');
|
|
50
|
-
if (!hasChrome) {
|
|
51
|
-
return this.skip();
|
|
52
|
-
}
|
|
53
|
-
driver = await (0, session_1.initSession)(desired_1.BROWSER_CAPS);
|
|
54
|
-
});
|
|
55
|
-
after(async function () {
|
|
56
|
-
if (driver) {
|
|
57
|
-
await (0, session_1.deleteSession)();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
it('should be able to start a data uri via setUrl', async function () {
|
|
61
|
-
try {
|
|
62
|
-
// on some chrome systems, we always get the terms and conditions page
|
|
63
|
-
let btn = await driver.$('id=com.android.chrome:id/terms_accept');
|
|
64
|
-
await btn.click();
|
|
65
|
-
btn = await driver.$('id=com.android.chrome:id/negative_button');
|
|
66
|
-
await btn.click();
|
|
67
|
-
}
|
|
68
|
-
catch {
|
|
69
|
-
// ignore
|
|
70
|
-
}
|
|
71
|
-
await driver.url('https://autify.com');
|
|
72
|
-
const el = await driver.$('<title />');
|
|
73
|
-
await el.waitForExist({ timeout: 5000 });
|
|
74
|
-
await (0, chai_1.expect)(el.getHTML()).to.eventually.include('Autify');
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=url-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-e2e-specs.js","sourceRoot":"","sources":["../../../../../test/functional/commands/general/url-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA2C;AAC3C,mDAAiE;AACjE,2CAA+B;AAC/B,6CAAkC;AAClC,wEAA8C;AAE9C,cAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAEzB,QAAQ,CAAC,QAAQ,EAAE;IACjB,IAAI,MAA2B,CAAC;IAEhC,MAAM,CAAC,KAAK;QACV,MAAM,GAAG,GAAG,IAAI,gBAAG,EAAE,CAAC;QACtB,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QACjE,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;QACD,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,sBAAY,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,KAAK;QACT,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,IAAA,uBAAa,GAAE,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,KAAK;QACvD,IAAI,CAAC;YACH,sEAAsE;YACtE,IAAI,GAAG,GAAG,MAAM,MAAO,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC;YACnE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;YAElB,GAAG,GAAG,MAAM,MAAO,CAAC,CAAC,CAAC,0CAA0C,CAAC,CAAC;YAClE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QACpB,CAAC;QAAC,MAAM,CAAC;YACP,SAAS;QACX,CAAC;QAED,MAAM,MAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAExC,MAAM,EAAE,GAAG,MAAM,MAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACxC,MAAM,EAAE,CAAC,YAAY,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;QACvC,MAAM,IAAA,aAAM,EAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-e2e-specs.d.ts","sourceRoot":"","sources":["../../../../../test/functional/commands/keyboard/keyboard-e2e-specs.ts"],"names":[],"mappings":""}
|