@appium/fake-driver 5.7.3 → 6.0.0-rc.1
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.
|
@@ -13,90 +13,4 @@ require("./contexts");
|
|
|
13
13
|
require("./element");
|
|
14
14
|
require("./find");
|
|
15
15
|
require("./general");
|
|
16
|
-
/* // TODO:
|
|
17
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/click', controller.doClick);
|
|
18
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/longclick', controller.touchLongClick);
|
|
19
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/down', controller.touchDown);
|
|
20
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/up', controller.touchUp);
|
|
21
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/move', controller.touchMove);
|
|
22
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/flick', controller.pickAFlickMethod);
|
|
23
|
-
//rest.post('/wd/hub/session/:sessionId?/url', controller.postUrl);
|
|
24
|
-
//rest.get('/wd/hub/session/:sessionId?/url', controller.getUrl);
|
|
25
|
-
//rest.post('/wd/hub/session/:sessionId?/element/active', controller.active);
|
|
26
|
-
//rest.get('/wd/hub/session/:sessionId?/window_handle', controller.getWindowHandle);
|
|
27
|
-
//rest.get('/wd/hub/session/:sessionId?/window_handles', controller.getWindowHandles);
|
|
28
|
-
//rest.post('/wd/hub/session/:sessionId?/window', controller.setWindow);
|
|
29
|
-
//rest.delete('/wd/hub/session/:sessionId?/window', controller.closeWindow);
|
|
30
|
-
//rest.get('/wd/hub/session/:sessionId?/window/:windowhandle?/size', controller.getWindowSize);
|
|
31
|
-
//rest.post('/wd/hub/session/:sessionId?/execute', controller.execute);
|
|
32
|
-
//rest.post('/wd/hub/session/:sessionId?/execute_async', controller.executeAsync);
|
|
33
|
-
//rest.post('/wd/hub/session/:sessionId?/element/:elementId?/submit', controller.submit);
|
|
34
|
-
//rest.post('/wd/hub/session/:sessionId?/moveto', controller.moveTo);
|
|
35
|
-
//rest.post('/wd/hub/session/:sessionId?/click', controller.clickCurrent);
|
|
36
|
-
//rest.post('/wd/hub/session/:sessionId?/back', controller.back);
|
|
37
|
-
//rest.post('/wd/hub/session/:sessionId?/forward', controller.forward);
|
|
38
|
-
//rest.post('/wd/hub/session/:sessionId?/refresh', controller.refresh);
|
|
39
|
-
//rest.get('/wd/hub/session/:sessionId?/cookie', controller.getCookies);
|
|
40
|
-
//rest.post('/wd/hub/session/:sessionId?/cookie', controller.setCookie);
|
|
41
|
-
//rest.delete('/wd/hub/session/:sessionId?/cookie', controller.deleteCookies);
|
|
42
|
-
//rest.delete('/wd/hub/session/:sessionId?/cookie/:name', controller.deleteCookie);
|
|
43
|
-
//rest.post('/wd/hub/session/:sessionId?/log', controller.getLog);
|
|
44
|
-
//rest.get('/wd/hub/session/:sessionId?/log/types', controller.getLogTypes);
|
|
45
|
-
//rest.get('/wd/hub/session/:sessionId?/network_connection', controller.getNetworkConnection);
|
|
46
|
-
//rest.post('/wd/hub/session/:sessionId?/network_connection', controller.setNetworkConnection);
|
|
47
|
-
|
|
48
|
-
//// touch gesture endpoints
|
|
49
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/perform', controller.performTouch);
|
|
50
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/multi/perform', controller.performMultiAction);
|
|
51
|
-
|
|
52
|
-
//// allow appium to receive async response
|
|
53
|
-
//rest.post('/wd/hub/session/:sessionId?/receive_async_response', controller.receiveAsyncResponse);
|
|
54
|
-
//// these are for testing purposes only
|
|
55
|
-
//rest.post('/wd/hub/produce_error', controller.produceError);
|
|
56
|
-
//rest.post('/wd/hub/crash', controller.crash);
|
|
57
|
-
//rest.all('/test/guinea-pig', controller.guineaPig);
|
|
58
|
-
|
|
59
|
-
//// IME specific
|
|
60
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/available_engines', controller.availableIMEEngines);
|
|
61
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/active_engine', controller.getActiveIMEEngine);
|
|
62
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/activated', controller.isIMEActivated);
|
|
63
|
-
//rest.post('/wd/hub/session/:sessionId?/ime/deactivate', controller.deactivateIMEEngine);
|
|
64
|
-
//rest.post('/wd/hub/session/:sessionId?/ime/activate', controller.activateIMEEngine);
|
|
65
|
-
|
|
66
|
-
//// appium-specific extensions to JSONWP
|
|
67
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/shake', controller.mobileShake);
|
|
68
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/lock', controller.lock);
|
|
69
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/unlock', controller.unlock);
|
|
70
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/is_locked', controller.isLocked);
|
|
71
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/press_keycode', controller.pressKeyCode);
|
|
72
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/long_press_keycode', controller.longPressKeyCode);
|
|
73
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/keyevent', controller.keyevent);
|
|
74
|
-
//rest.get('/wd/hub/session/:sessionId?/appium/device/current_activity', controller.getCurrentActivity);
|
|
75
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/install_app', controller.installApp);
|
|
76
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/remove_app', controller.removeApp);
|
|
77
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled);
|
|
78
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/hide_keyboard', controller.hideKeyboard);
|
|
79
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/push_file', controller.pushFile);
|
|
80
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile);
|
|
81
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/pull_folder', controller.pullFolder);
|
|
82
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_airplane_mode', controller.toggleFlightMode);
|
|
83
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_data', controller.toggleData);
|
|
84
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_wifi', controller.toggleWiFi);
|
|
85
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_location_services', controller.toggleLocationServices);
|
|
86
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/open_notifications', controller.openNotifications);
|
|
87
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/start_activity', controller.startActivity);
|
|
88
|
-
|
|
89
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/launch', controller.launchApp);
|
|
90
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/close', controller.closeApp);
|
|
91
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/reset', controller.reset);
|
|
92
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/background', controller.background);
|
|
93
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/end_test_coverage', controller.endCoverage);
|
|
94
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/strings', controller.getStrings);
|
|
95
|
-
|
|
96
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/element/:elementId?/value', controller.setValueImmediate);
|
|
97
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/element/:elementId?/replace_value', controller.replaceValue);
|
|
98
|
-
|
|
99
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/settings', controller.updateSettings);
|
|
100
|
-
//rest.get('/wd/hub/session/:sessionId?/appium/settings', controller.getSettings);
|
|
101
|
-
*/
|
|
102
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAEH,mBAAiB;AACjB,sBAAoB;AACpB,qBAAmB;AACnB,kBAAgB;AAChB,qBAAmB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAEH,mBAAiB;AACjB,sBAAoB;AACpB,qBAAmB;AACnB,kBAAgB;AAChB,qBAAmB"}
|
package/lib/commands/index.ts
CHANGED
|
@@ -12,90 +12,3 @@ import './contexts';
|
|
|
12
12
|
import './element';
|
|
13
13
|
import './find';
|
|
14
14
|
import './general';
|
|
15
|
-
|
|
16
|
-
/* // TODO:
|
|
17
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/click', controller.doClick);
|
|
18
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/longclick', controller.touchLongClick);
|
|
19
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/down', controller.touchDown);
|
|
20
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/up', controller.touchUp);
|
|
21
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/move', controller.touchMove);
|
|
22
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/flick', controller.pickAFlickMethod);
|
|
23
|
-
//rest.post('/wd/hub/session/:sessionId?/url', controller.postUrl);
|
|
24
|
-
//rest.get('/wd/hub/session/:sessionId?/url', controller.getUrl);
|
|
25
|
-
//rest.post('/wd/hub/session/:sessionId?/element/active', controller.active);
|
|
26
|
-
//rest.get('/wd/hub/session/:sessionId?/window_handle', controller.getWindowHandle);
|
|
27
|
-
//rest.get('/wd/hub/session/:sessionId?/window_handles', controller.getWindowHandles);
|
|
28
|
-
//rest.post('/wd/hub/session/:sessionId?/window', controller.setWindow);
|
|
29
|
-
//rest.delete('/wd/hub/session/:sessionId?/window', controller.closeWindow);
|
|
30
|
-
//rest.get('/wd/hub/session/:sessionId?/window/:windowhandle?/size', controller.getWindowSize);
|
|
31
|
-
//rest.post('/wd/hub/session/:sessionId?/execute', controller.execute);
|
|
32
|
-
//rest.post('/wd/hub/session/:sessionId?/execute_async', controller.executeAsync);
|
|
33
|
-
//rest.post('/wd/hub/session/:sessionId?/element/:elementId?/submit', controller.submit);
|
|
34
|
-
//rest.post('/wd/hub/session/:sessionId?/moveto', controller.moveTo);
|
|
35
|
-
//rest.post('/wd/hub/session/:sessionId?/click', controller.clickCurrent);
|
|
36
|
-
//rest.post('/wd/hub/session/:sessionId?/back', controller.back);
|
|
37
|
-
//rest.post('/wd/hub/session/:sessionId?/forward', controller.forward);
|
|
38
|
-
//rest.post('/wd/hub/session/:sessionId?/refresh', controller.refresh);
|
|
39
|
-
//rest.get('/wd/hub/session/:sessionId?/cookie', controller.getCookies);
|
|
40
|
-
//rest.post('/wd/hub/session/:sessionId?/cookie', controller.setCookie);
|
|
41
|
-
//rest.delete('/wd/hub/session/:sessionId?/cookie', controller.deleteCookies);
|
|
42
|
-
//rest.delete('/wd/hub/session/:sessionId?/cookie/:name', controller.deleteCookie);
|
|
43
|
-
//rest.post('/wd/hub/session/:sessionId?/log', controller.getLog);
|
|
44
|
-
//rest.get('/wd/hub/session/:sessionId?/log/types', controller.getLogTypes);
|
|
45
|
-
//rest.get('/wd/hub/session/:sessionId?/network_connection', controller.getNetworkConnection);
|
|
46
|
-
//rest.post('/wd/hub/session/:sessionId?/network_connection', controller.setNetworkConnection);
|
|
47
|
-
|
|
48
|
-
//// touch gesture endpoints
|
|
49
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/perform', controller.performTouch);
|
|
50
|
-
//rest.post('/wd/hub/session/:sessionId?/touch/multi/perform', controller.performMultiAction);
|
|
51
|
-
|
|
52
|
-
//// allow appium to receive async response
|
|
53
|
-
//rest.post('/wd/hub/session/:sessionId?/receive_async_response', controller.receiveAsyncResponse);
|
|
54
|
-
//// these are for testing purposes only
|
|
55
|
-
//rest.post('/wd/hub/produce_error', controller.produceError);
|
|
56
|
-
//rest.post('/wd/hub/crash', controller.crash);
|
|
57
|
-
//rest.all('/test/guinea-pig', controller.guineaPig);
|
|
58
|
-
|
|
59
|
-
//// IME specific
|
|
60
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/available_engines', controller.availableIMEEngines);
|
|
61
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/active_engine', controller.getActiveIMEEngine);
|
|
62
|
-
//rest.get('/wd/hub/session/:sessionId?/ime/activated', controller.isIMEActivated);
|
|
63
|
-
//rest.post('/wd/hub/session/:sessionId?/ime/deactivate', controller.deactivateIMEEngine);
|
|
64
|
-
//rest.post('/wd/hub/session/:sessionId?/ime/activate', controller.activateIMEEngine);
|
|
65
|
-
|
|
66
|
-
//// appium-specific extensions to JSONWP
|
|
67
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/shake', controller.mobileShake);
|
|
68
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/lock', controller.lock);
|
|
69
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/unlock', controller.unlock);
|
|
70
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/is_locked', controller.isLocked);
|
|
71
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/press_keycode', controller.pressKeyCode);
|
|
72
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/long_press_keycode', controller.longPressKeyCode);
|
|
73
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/keyevent', controller.keyevent);
|
|
74
|
-
//rest.get('/wd/hub/session/:sessionId?/appium/device/current_activity', controller.getCurrentActivity);
|
|
75
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/install_app', controller.installApp);
|
|
76
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/remove_app', controller.removeApp);
|
|
77
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled);
|
|
78
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/hide_keyboard', controller.hideKeyboard);
|
|
79
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/push_file', controller.pushFile);
|
|
80
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile);
|
|
81
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/pull_folder', controller.pullFolder);
|
|
82
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_airplane_mode', controller.toggleFlightMode);
|
|
83
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_data', controller.toggleData);
|
|
84
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_wifi', controller.toggleWiFi);
|
|
85
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_location_services', controller.toggleLocationServices);
|
|
86
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/open_notifications', controller.openNotifications);
|
|
87
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/device/start_activity', controller.startActivity);
|
|
88
|
-
|
|
89
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/launch', controller.launchApp);
|
|
90
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/close', controller.closeApp);
|
|
91
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/reset', controller.reset);
|
|
92
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/background', controller.background);
|
|
93
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/end_test_coverage', controller.endCoverage);
|
|
94
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/app/strings', controller.getStrings);
|
|
95
|
-
|
|
96
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/element/:elementId?/value', controller.setValueImmediate);
|
|
97
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/element/:elementId?/replace_value', controller.replaceValue);
|
|
98
|
-
|
|
99
|
-
//rest.post('/wd/hub/session/:sessionId?/appium/settings', controller.updateSettings);
|
|
100
|
-
//rest.get('/wd/hub/session/:sessionId?/appium/settings', controller.getSettings);
|
|
101
|
-
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/fake-driver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-rc.1",
|
|
4
4
|
"description": "Mock driver used internally by Appium for testing. Ignore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"build": "cpy lib/screen.png build",
|
|
38
38
|
"clean": "npx rimraf build/lib/screen.png",
|
|
39
39
|
"test": "npm run test:unit",
|
|
40
|
-
"test:e2e": "mocha --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
|
|
40
|
+
"test:e2e": "mocha --exit --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
|
|
41
41
|
"test:smoke": "node ./build/lib/index.js",
|
|
42
|
-
"test:unit": "mocha --timeout 10s --slow 5s \"./test/unit/**/*.spec.js\""
|
|
42
|
+
"test:unit": "mocha --exit --timeout 10s --slow 5s \"./test/unit/**/*.spec.js\""
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xmldom/xmldom": "0.9.8",
|
|
@@ -50,14 +50,15 @@
|
|
|
50
50
|
"xpath": "0.0.34"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"appium": "^
|
|
53
|
+
"appium": "^3.0.0-beta.0"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": "^
|
|
57
|
-
"npm": ">=
|
|
56
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
57
|
+
"npm": ">=10"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
|
-
"access": "public"
|
|
60
|
+
"access": "public",
|
|
61
|
+
"tag": "rc"
|
|
61
62
|
},
|
|
62
63
|
"access": "public",
|
|
63
64
|
"appium": {
|
|
@@ -82,5 +83,5 @@
|
|
|
82
83
|
},
|
|
83
84
|
"main": "./build/lib/index.js",
|
|
84
85
|
"types": "./build/lib/index.d.ts",
|
|
85
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "157425ce6aa01c009533f5bf6a56b14570222b00"
|
|
86
87
|
}
|