appium-android-driver 15.0.0-beta.2 → 15.0.0
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 +38 -8
- package/build/lib/commands/app-management.d.ts +26 -0
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +4 -3
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +7 -0
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/bluetooth.d.ts +6 -0
- package/build/lib/commands/bluetooth.d.ts.map +1 -1
- package/build/lib/commands/bluetooth.js +1 -1
- package/build/lib/commands/bluetooth.js.map +1 -1
- package/build/lib/commands/context/exports.d.ts +25 -0
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +10 -6
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/device/common.d.ts +9 -0
- package/build/lib/commands/device/common.d.ts.map +1 -1
- package/build/lib/commands/device/common.js +1 -1
- package/build/lib/commands/device/common.js.map +1 -1
- package/build/lib/commands/device/emulator-actions.d.ts +22 -0
- package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-actions.js.map +1 -1
- package/build/lib/commands/device/emulator-console.d.ts +6 -0
- package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
- package/build/lib/commands/device/emulator-console.js.map +1 -1
- package/build/lib/commands/device/utils.js +3 -3
- package/build/lib/commands/device/utils.js.map +1 -1
- package/build/lib/commands/deviceidle.d.ts +6 -0
- package/build/lib/commands/deviceidle.d.ts.map +1 -1
- package/build/lib/commands/deviceidle.js +1 -1
- package/build/lib/commands/deviceidle.js.map +1 -1
- package/build/lib/commands/element.d.ts +20 -0
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +0 -1
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +6 -0
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-actions.d.ts +9 -0
- package/build/lib/commands/file-actions.d.ts.map +1 -1
- package/build/lib/commands/file-actions.js.map +1 -1
- package/build/lib/commands/find.d.ts +8 -0
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +13 -0
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +2 -2
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +6 -0
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/image-injection.d.ts +6 -0
- package/build/lib/commands/image-injection.d.ts.map +1 -1
- package/build/lib/commands/image-injection.js.map +1 -1
- package/build/lib/commands/ime.d.ts +11 -0
- package/build/lib/commands/ime.d.ts.map +1 -1
- package/build/lib/commands/ime.js.map +1 -1
- package/build/lib/commands/intent.d.ts +10 -0
- package/build/lib/commands/intent.d.ts.map +1 -1
- package/build/lib/commands/intent.js +4 -4
- package/build/lib/commands/intent.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +12 -0
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/legacy.d.ts +8 -0
- package/build/lib/commands/legacy.d.ts.map +1 -1
- package/build/lib/commands/legacy.js.map +1 -1
- package/build/lib/commands/lock/exports.d.ts +9 -0
- package/build/lib/commands/lock/exports.d.ts.map +1 -1
- package/build/lib/commands/lock/exports.js.map +1 -1
- package/build/lib/commands/lock/helpers.js +1 -1
- package/build/lib/commands/lock/helpers.js.map +1 -1
- package/build/lib/commands/log.d.ts +8 -13
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +4 -32
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/media-projection.d.ts +8 -0
- package/build/lib/commands/media-projection.d.ts.map +1 -1
- package/build/lib/commands/media-projection.js.map +1 -1
- package/build/lib/commands/memory.d.ts +6 -0
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/misc.d.ts +12 -0
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/network.d.ts +15 -0
- package/build/lib/commands/network.d.ts.map +1 -1
- package/build/lib/commands/network.js +2 -2
- package/build/lib/commands/network.js.map +1 -1
- package/build/lib/commands/nfc.d.ts +6 -0
- package/build/lib/commands/nfc.d.ts.map +1 -1
- package/build/lib/commands/nfc.js +1 -1
- package/build/lib/commands/nfc.js.map +1 -1
- package/build/lib/commands/performance.d.ts +8 -0
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +7 -0
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +3 -3
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +7 -0
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/resources.d.ts +7 -0
- package/build/lib/commands/resources.d.ts.map +1 -1
- package/build/lib/commands/resources.js +1 -1
- package/build/lib/commands/resources.js.map +1 -1
- package/build/lib/commands/shell.d.ts +9 -0
- package/build/lib/commands/shell.d.ts.map +1 -1
- package/build/lib/commands/shell.js.map +1 -1
- package/build/lib/commands/streamscreen.d.ts +7 -0
- package/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/build/lib/commands/streamscreen.js.map +1 -1
- package/build/lib/commands/system-bars.d.ts +7 -0
- package/build/lib/commands/system-bars.d.ts.map +1 -1
- package/build/lib/commands/system-bars.js +2 -2
- package/build/lib/commands/system-bars.js.map +1 -1
- package/build/lib/commands/time.d.ts +7 -0
- package/build/lib/commands/time.d.ts.map +1 -1
- package/build/lib/commands/time.js.map +1 -1
- package/build/lib/constraints.d.ts +16 -3
- package/build/lib/constraints.d.ts.map +1 -1
- package/build/lib/constraints.js +16 -3
- package/build/lib/constraints.js.map +1 -1
- package/build/lib/driver.d.ts +36 -201
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +253 -168
- package/build/lib/driver.js.map +1 -1
- package/build/lib/utils.js +1 -1
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/app-management.ts +33 -3
- package/lib/commands/appearance.ts +8 -0
- package/lib/commands/bluetooth.ts +8 -1
- package/lib/commands/context/exports.ts +46 -6
- package/lib/commands/device/common.ts +11 -1
- package/lib/commands/device/emulator-actions.ts +23 -0
- package/lib/commands/device/emulator-console.ts +9 -0
- package/lib/commands/device/utils.ts +3 -3
- package/lib/commands/deviceidle.ts +8 -1
- package/lib/commands/element.ts +21 -0
- package/lib/commands/execute.ts +7 -0
- package/lib/commands/file-actions.ts +10 -0
- package/lib/commands/find.ts +9 -0
- package/lib/commands/geolocation.ts +22 -2
- package/lib/commands/gestures.ts +7 -0
- package/lib/commands/image-injection.ts +9 -0
- package/lib/commands/ime.ts +12 -0
- package/lib/commands/intent.ts +25 -4
- package/lib/commands/keyboard.ts +15 -0
- package/lib/commands/legacy.ts +9 -0
- package/lib/commands/lock/exports.ts +10 -0
- package/lib/commands/lock/helpers.ts +1 -1
- package/lib/commands/log.ts +20 -35
- package/lib/commands/media-projection.ts +15 -0
- package/lib/commands/memory.ts +7 -0
- package/lib/commands/misc.ts +15 -0
- package/lib/commands/network.ts +18 -2
- package/lib/commands/nfc.ts +8 -1
- package/lib/commands/performance.ts +13 -0
- package/lib/commands/permissions.ts +15 -3
- package/lib/commands/recordscreen.ts +8 -0
- package/lib/commands/resources.ts +9 -1
- package/lib/commands/shell.ts +12 -0
- package/lib/commands/streamscreen.ts +12 -0
- package/lib/commands/system-bars.ts +12 -2
- package/lib/commands/time.ts +8 -0
- package/lib/constraints.ts +16 -3
- package/lib/driver.ts +289 -212
- package/lib/utils.ts +1 -1
- package/package.json +1 -1
package/build/lib/driver.d.ts
CHANGED
|
@@ -4,42 +4,42 @@ import type { Chromedriver as AppiumChromedriver } from 'appium-chromedriver';
|
|
|
4
4
|
import { BaseDriver } from 'appium/driver.js';
|
|
5
5
|
import { SettingsApp } from 'io.appium.settings';
|
|
6
6
|
import { LRUCache } from 'lru-cache';
|
|
7
|
-
import { getThirdPartyPackages, uninstallOtherPackages, installOtherApks, installAUT, resetAUT, background, mobileBackgroundApp, getCurrentActivity, getCurrentPackage, mobileClearApp, mobileInstallApp, installApp, mobileIsAppInstalled, mobileRemoveApp, mobileTerminateApp, mobileListApps, terminateApp, removeApp, activateApp, queryAppState, isAppInstalled } from './commands/app-management.js';
|
|
8
|
-
import { mobileGetUiMode, mobileSetUiMode } from './commands/appearance.js';
|
|
9
|
-
import { mobileBluetooth } from './commands/bluetooth.js';
|
|
10
|
-
import { getContexts, getCurrentContext, defaultContextName, assignContexts, switchContext, defaultWebviewName, isWebContext, isChromedriverContext, startChromedriverProxy, onChromedriverStop, stopChromedriverProxies, suspendChromedriverProxy, startChromeSession, mobileGetContexts, mobileGetChromeCapabilities, getWindowHandle, getWindowHandles, setWindow, notifyBiDiContextChange } from './commands/context/exports.js';
|
|
11
|
-
import { getDeviceInfoFromCaps, createADB, getLaunchInfo, initDevice } from './commands/device/common.js';
|
|
12
|
-
import { fingerprint, mobileFingerprint, sendSMS, mobileSendSms, gsmCall, mobileGsmCall, gsmSignal, mobileGsmSignal, gsmVoice, mobileGsmVoice, powerAC, mobilePowerAc, powerCapacity, mobilePowerCapacity, networkSpeed, mobileNetworkSpeed, sensorSet } from './commands/device/emulator-actions.js';
|
|
13
|
-
import { mobileExecEmuConsoleCommand } from './commands/device/emulator-console.js';
|
|
14
|
-
import { mobileDeviceidle } from './commands/deviceidle.js';
|
|
15
|
-
import { getAttribute, getName, elementDisplayed, elementEnabled, elementSelected, setElementValue, doSetElementValue, replaceValue, setValueImmediate, setValue, click, getLocationInView, getText, getLocation, getSize } from './commands/element.js';
|
|
16
|
-
import { execute } from './commands/execute.js';
|
|
17
|
-
import { pullFile, pullFolder, pushFile, mobileDeleteFile } from './commands/file-actions.js';
|
|
18
|
-
import { findElOrEls, doFindElementOrEls } from './commands/find.js';
|
|
19
|
-
import { setGeoLocation, getGeoLocation, mobileRefreshGpsCache, toggleLocationServices, isLocationServicesEnabled, mobileGetGeolocation, mobileSetGeolocation, mobileResetGeolocation } from './commands/geolocation.js';
|
|
20
|
-
import { performActions } from './commands/gestures.js';
|
|
21
|
-
import { mobileInjectEmulatorCameraImage } from './commands/image-injection.js';
|
|
22
|
-
import { isIMEActivated, availableIMEEngines, getActiveIMEEngine, activateIMEEngine, deactivateIMEEngine, setStylusHandwriting } from './commands/ime.js';
|
|
23
|
-
import { mobileStartActivity, mobileBroadcast, mobileStartService, mobileStopService } from './commands/intent.js';
|
|
24
|
-
import { hideKeyboard, isKeyboardShown, keys, doSendKeys, pressKeyCode, longPressKeyCode, mobilePerformEditorAction } from './commands/keyboard.js';
|
|
25
|
-
import { reset, closeApp, launchApp } from './commands/legacy.js';
|
|
26
|
-
import { lock, unlock, mobileUnlock, isLocked } from './commands/lock/exports.js';
|
|
27
|
-
import { mobileStartLogsBroadcast, mobileStopLogsBroadcast, getLogTypes, getLog, assignBiDiLogListener } from './commands/log.js';
|
|
28
|
-
import { mobileIsMediaProjectionRecordingRunning, mobileStartMediaProjectionRecording, mobileStopMediaProjectionRecording } from './commands/media-projection.js';
|
|
29
|
-
import { mobileSendTrimMemory } from './commands/memory.js';
|
|
30
|
-
import { getWindowRect, getWindowSize, getDisplayDensity, mobileGetNotifications, mobileListSms, openNotifications, setUrl } from './commands/misc.js';
|
|
31
|
-
import { getNetworkConnection, isWifiOn, mobileGetConnectivity, mobileSetConnectivity, setNetworkConnection, setWifiState, setDataState, toggleData, toggleFlightMode, toggleWiFi } from './commands/network.js';
|
|
32
|
-
import { mobileNfc } from './commands/nfc.js';
|
|
33
|
-
import { getPerformanceData, getPerformanceDataTypes, mobileGetPerformanceData } from './commands/performance.js';
|
|
34
|
-
import { mobileChangePermissions, mobileGetPermissions } from './commands/permissions.js';
|
|
35
|
-
import { startRecordingScreen, stopRecordingScreen } from './commands/recordscreen.js';
|
|
36
|
-
import { getStrings, ensureDeviceLocale } from './commands/resources.js';
|
|
37
|
-
import { mobileShell } from './commands/shell.js';
|
|
38
|
-
import { mobileStartScreenStreaming, mobileStopScreenStreaming } from './commands/streamscreen.js';
|
|
39
|
-
import { getSystemBars, mobilePerformStatusBarCommand } from './commands/system-bars.js';
|
|
40
|
-
import { getDeviceTime, mobileGetDeviceTime } from './commands/time.js';
|
|
41
7
|
import type { ScreenRecordingProperties, ScreenStreamingProps } from './commands/types.js';
|
|
42
8
|
import type { AndroidDriverConstraints } from './constraints.js';
|
|
9
|
+
import './commands/app-management.js';
|
|
10
|
+
import './commands/appearance.js';
|
|
11
|
+
import './commands/bluetooth.js';
|
|
12
|
+
import './commands/context/exports.js';
|
|
13
|
+
import './commands/device/common.js';
|
|
14
|
+
import './commands/device/emulator-actions.js';
|
|
15
|
+
import './commands/device/emulator-console.js';
|
|
16
|
+
import './commands/deviceidle.js';
|
|
17
|
+
import './commands/element.js';
|
|
18
|
+
import './commands/execute.js';
|
|
19
|
+
import './commands/file-actions.js';
|
|
20
|
+
import './commands/find.js';
|
|
21
|
+
import './commands/geolocation.js';
|
|
22
|
+
import './commands/gestures.js';
|
|
23
|
+
import './commands/image-injection.js';
|
|
24
|
+
import './commands/ime.js';
|
|
25
|
+
import './commands/intent.js';
|
|
26
|
+
import './commands/keyboard.js';
|
|
27
|
+
import './commands/legacy.js';
|
|
28
|
+
import './commands/lock/exports.js';
|
|
29
|
+
import './commands/log.js';
|
|
30
|
+
import './commands/media-projection.js';
|
|
31
|
+
import './commands/memory.js';
|
|
32
|
+
import './commands/misc.js';
|
|
33
|
+
import './commands/network.js';
|
|
34
|
+
import './commands/nfc.js';
|
|
35
|
+
import './commands/performance.js';
|
|
36
|
+
import './commands/permissions.js';
|
|
37
|
+
import './commands/recordscreen.js';
|
|
38
|
+
import './commands/resources.js';
|
|
39
|
+
import './commands/shell.js';
|
|
40
|
+
import './commands/streamscreen.js';
|
|
41
|
+
import './commands/system-bars.js';
|
|
42
|
+
import './commands/time.js';
|
|
43
43
|
export type AndroidDriverCaps = DriverCaps<AndroidDriverConstraints>;
|
|
44
44
|
export type W3CAndroidDriverCaps = W3CDriverCaps<AndroidDriverConstraints>;
|
|
45
45
|
export type AndroidDriverOpts = DriverOpts<AndroidDriverConstraints>;
|
|
@@ -854,126 +854,6 @@ declare class AndroidDriver<C extends AndroidDriverConstraints = AndroidDriverCo
|
|
|
854
854
|
_bidiProxyUrl: string | null;
|
|
855
855
|
_chromedriverCapsCache: LRUCache<string, StringRecord>;
|
|
856
856
|
opts: DriverOpts<C>;
|
|
857
|
-
getContexts: typeof getContexts;
|
|
858
|
-
getCurrentContext: typeof getCurrentContext;
|
|
859
|
-
defaultContextName: typeof defaultContextName;
|
|
860
|
-
assignContexts: typeof assignContexts;
|
|
861
|
-
switchContext: typeof switchContext;
|
|
862
|
-
defaultWebviewName: typeof defaultWebviewName;
|
|
863
|
-
isChromedriverContext: typeof isChromedriverContext;
|
|
864
|
-
startChromedriverProxy: typeof startChromedriverProxy;
|
|
865
|
-
stopChromedriverProxies: typeof stopChromedriverProxies;
|
|
866
|
-
suspendChromedriverProxy: typeof suspendChromedriverProxy;
|
|
867
|
-
startChromeSession: typeof startChromeSession;
|
|
868
|
-
onChromedriverStop: typeof onChromedriverStop;
|
|
869
|
-
isWebContext: typeof isWebContext;
|
|
870
|
-
mobileGetContexts: typeof mobileGetContexts;
|
|
871
|
-
mobileGetChromeCapabilities: typeof mobileGetChromeCapabilities;
|
|
872
|
-
setContext: (this: AndroidDriver, name?: string) => Promise<void>;
|
|
873
|
-
setWindow: typeof setWindow;
|
|
874
|
-
getWindowHandle: typeof getWindowHandle;
|
|
875
|
-
getWindowHandles: typeof getWindowHandles;
|
|
876
|
-
notifyBiDiContextChange: typeof notifyBiDiContextChange;
|
|
877
|
-
getDeviceInfoFromCaps: typeof getDeviceInfoFromCaps;
|
|
878
|
-
createADB: typeof createADB;
|
|
879
|
-
getLaunchInfo: typeof getLaunchInfo;
|
|
880
|
-
initDevice: typeof initDevice;
|
|
881
|
-
fingerprint: typeof fingerprint;
|
|
882
|
-
mobileFingerprint: typeof mobileFingerprint;
|
|
883
|
-
sendSMS: typeof sendSMS;
|
|
884
|
-
mobileSendSms: typeof mobileSendSms;
|
|
885
|
-
gsmCall: typeof gsmCall;
|
|
886
|
-
mobileGsmCall: typeof mobileGsmCall;
|
|
887
|
-
gsmSignal: typeof gsmSignal;
|
|
888
|
-
mobileGsmSignal: typeof mobileGsmSignal;
|
|
889
|
-
gsmVoice: typeof gsmVoice;
|
|
890
|
-
mobileGsmVoice: typeof mobileGsmVoice;
|
|
891
|
-
powerAC: typeof powerAC;
|
|
892
|
-
mobilePowerAc: typeof mobilePowerAc;
|
|
893
|
-
powerCapacity: typeof powerCapacity;
|
|
894
|
-
mobilePowerCapacity: typeof mobilePowerCapacity;
|
|
895
|
-
networkSpeed: typeof networkSpeed;
|
|
896
|
-
mobileNetworkSpeed: typeof mobileNetworkSpeed;
|
|
897
|
-
sensorSet: typeof sensorSet;
|
|
898
|
-
mobileExecEmuConsoleCommand: typeof mobileExecEmuConsoleCommand;
|
|
899
|
-
getThirdPartyPackages: typeof getThirdPartyPackages;
|
|
900
|
-
uninstallOtherPackages: typeof uninstallOtherPackages;
|
|
901
|
-
installOtherApks: typeof installOtherApks;
|
|
902
|
-
installAUT: typeof installAUT;
|
|
903
|
-
resetAUT: typeof resetAUT;
|
|
904
|
-
background: typeof background;
|
|
905
|
-
getCurrentActivity: typeof getCurrentActivity;
|
|
906
|
-
getCurrentPackage: typeof getCurrentPackage;
|
|
907
|
-
mobileClearApp: typeof mobileClearApp;
|
|
908
|
-
mobileInstallApp: typeof mobileInstallApp;
|
|
909
|
-
installApp: typeof installApp;
|
|
910
|
-
mobileIsAppInstalled: typeof mobileIsAppInstalled;
|
|
911
|
-
mobileRemoveApp: typeof mobileRemoveApp;
|
|
912
|
-
mobileTerminateApp: typeof mobileTerminateApp;
|
|
913
|
-
mobileListApps: typeof mobileListApps;
|
|
914
|
-
terminateApp: typeof terminateApp;
|
|
915
|
-
removeApp: typeof removeApp;
|
|
916
|
-
activateApp: typeof activateApp;
|
|
917
|
-
queryAppState: typeof queryAppState;
|
|
918
|
-
isAppInstalled: typeof isAppInstalled;
|
|
919
|
-
mobileBackgroundApp: typeof mobileBackgroundApp;
|
|
920
|
-
mobileGetUiMode: typeof mobileGetUiMode;
|
|
921
|
-
mobileSetUiMode: typeof mobileSetUiMode;
|
|
922
|
-
mobileDeviceidle: typeof mobileDeviceidle;
|
|
923
|
-
mobileBluetooth: typeof mobileBluetooth;
|
|
924
|
-
getAttribute: typeof getAttribute;
|
|
925
|
-
getName: typeof getName;
|
|
926
|
-
elementDisplayed: typeof elementDisplayed;
|
|
927
|
-
elementEnabled: typeof elementEnabled;
|
|
928
|
-
elementSelected: typeof elementSelected;
|
|
929
|
-
setElementValue: typeof setElementValue;
|
|
930
|
-
doSetElementValue: typeof doSetElementValue;
|
|
931
|
-
replaceValue: typeof replaceValue;
|
|
932
|
-
setValueImmediate: typeof setValueImmediate;
|
|
933
|
-
setValue: typeof setValue;
|
|
934
|
-
click: typeof click;
|
|
935
|
-
getLocationInView: typeof getLocationInView;
|
|
936
|
-
getText: typeof getText;
|
|
937
|
-
getLocation: typeof getLocation;
|
|
938
|
-
getSize: typeof getSize;
|
|
939
|
-
execute: typeof execute;
|
|
940
|
-
pullFile: typeof pullFile;
|
|
941
|
-
pullFolder: typeof pullFolder;
|
|
942
|
-
pushFile: typeof pushFile;
|
|
943
|
-
mobileDeleteFile: typeof mobileDeleteFile;
|
|
944
|
-
findElOrEls: typeof findElOrEls;
|
|
945
|
-
doFindElementOrEls: typeof doFindElementOrEls;
|
|
946
|
-
setGeoLocation: typeof setGeoLocation;
|
|
947
|
-
getGeoLocation: typeof getGeoLocation;
|
|
948
|
-
mobileRefreshGpsCache: typeof mobileRefreshGpsCache;
|
|
949
|
-
toggleLocationServices: typeof toggleLocationServices;
|
|
950
|
-
isLocationServicesEnabled: typeof isLocationServicesEnabled;
|
|
951
|
-
mobileGetGeolocation: typeof mobileGetGeolocation;
|
|
952
|
-
mobileSetGeolocation: typeof mobileSetGeolocation;
|
|
953
|
-
mobileResetGeolocation: typeof mobileResetGeolocation;
|
|
954
|
-
performActions: typeof performActions;
|
|
955
|
-
isIMEActivated: typeof isIMEActivated;
|
|
956
|
-
availableIMEEngines: typeof availableIMEEngines;
|
|
957
|
-
getActiveIMEEngine: typeof getActiveIMEEngine;
|
|
958
|
-
activateIMEEngine: typeof activateIMEEngine;
|
|
959
|
-
deactivateIMEEngine: typeof deactivateIMEEngine;
|
|
960
|
-
setStylusHandwriting: typeof setStylusHandwriting;
|
|
961
|
-
startActivity: (appPackage: string, appActivity: string, appWaitPackage?: string, appWaitActivity?: string, intentAction?: string, intentCategory?: string, intentFlags?: string, optionalIntentArguments?: string, dontStopAppOnReset?: boolean) => Promise<void>;
|
|
962
|
-
mobileStartActivity: typeof mobileStartActivity;
|
|
963
|
-
mobileBroadcast: typeof mobileBroadcast;
|
|
964
|
-
mobileStartService: typeof mobileStartService;
|
|
965
|
-
mobileStopService: typeof mobileStopService;
|
|
966
|
-
hideKeyboard: typeof hideKeyboard;
|
|
967
|
-
isKeyboardShown: typeof isKeyboardShown;
|
|
968
|
-
keys: typeof keys;
|
|
969
|
-
doSendKeys: typeof doSendKeys;
|
|
970
|
-
pressKeyCode: typeof pressKeyCode;
|
|
971
|
-
longPressKeyCode: typeof longPressKeyCode;
|
|
972
|
-
mobilePerformEditorAction: typeof mobilePerformEditorAction;
|
|
973
|
-
lock: typeof lock;
|
|
974
|
-
unlock: typeof unlock;
|
|
975
|
-
mobileUnlock: typeof mobileUnlock;
|
|
976
|
-
isLocked: typeof isLocked;
|
|
977
857
|
supportedLogTypes: {
|
|
978
858
|
readonly logcat: {
|
|
979
859
|
readonly description: "Logs for Android applications on real device and emulators via ADB";
|
|
@@ -988,59 +868,14 @@ declare class AndroidDriver<C extends AndroidDriverConstraints = AndroidDriverCo
|
|
|
988
868
|
readonly getter: (self: AndroidDriver) => import("appium-adb").LogEntry[];
|
|
989
869
|
};
|
|
990
870
|
};
|
|
991
|
-
mobileStartLogsBroadcast: typeof mobileStartLogsBroadcast;
|
|
992
|
-
mobileStopLogsBroadcast: typeof mobileStopLogsBroadcast;
|
|
993
|
-
getLogTypes: typeof getLogTypes;
|
|
994
|
-
getLog: typeof getLog;
|
|
995
|
-
assignBiDiLogListener: typeof assignBiDiLogListener;
|
|
996
|
-
mobileIsMediaProjectionRecordingRunning: typeof mobileIsMediaProjectionRecordingRunning;
|
|
997
|
-
mobileStartMediaProjectionRecording: typeof mobileStartMediaProjectionRecording;
|
|
998
|
-
mobileStopMediaProjectionRecording: typeof mobileStopMediaProjectionRecording;
|
|
999
|
-
mobileSendTrimMemory: typeof mobileSendTrimMemory;
|
|
1000
|
-
mobileInjectEmulatorCameraImage: typeof mobileInjectEmulatorCameraImage;
|
|
1001
|
-
getWindowRect: typeof getWindowRect;
|
|
1002
|
-
getWindowSize: typeof getWindowSize;
|
|
1003
|
-
getDisplayDensity: typeof getDisplayDensity;
|
|
1004
|
-
mobileGetNotifications: typeof mobileGetNotifications;
|
|
1005
|
-
mobileListSms: typeof mobileListSms;
|
|
1006
|
-
openNotifications: typeof openNotifications;
|
|
1007
|
-
setUrl: typeof setUrl;
|
|
1008
|
-
getNetworkConnection: typeof getNetworkConnection;
|
|
1009
|
-
isWifiOn: typeof isWifiOn;
|
|
1010
|
-
mobileGetConnectivity: typeof mobileGetConnectivity;
|
|
1011
|
-
mobileSetConnectivity: typeof mobileSetConnectivity;
|
|
1012
|
-
setNetworkConnection: typeof setNetworkConnection;
|
|
1013
|
-
setWifiState: typeof setWifiState;
|
|
1014
|
-
setDataState: typeof setDataState;
|
|
1015
|
-
toggleData: typeof toggleData;
|
|
1016
|
-
toggleFlightMode: typeof toggleFlightMode;
|
|
1017
|
-
toggleWiFi: typeof toggleWiFi;
|
|
1018
|
-
getPerformanceData: typeof getPerformanceData;
|
|
1019
|
-
getPerformanceDataTypes: typeof getPerformanceDataTypes;
|
|
1020
|
-
mobileGetPerformanceData: typeof mobileGetPerformanceData;
|
|
1021
|
-
mobileChangePermissions: typeof mobileChangePermissions;
|
|
1022
|
-
mobileGetPermissions: typeof mobileGetPermissions;
|
|
1023
|
-
startRecordingScreen: typeof startRecordingScreen;
|
|
1024
|
-
stopRecordingScreen: typeof stopRecordingScreen;
|
|
1025
|
-
getStrings: typeof getStrings;
|
|
1026
|
-
ensureDeviceLocale: typeof ensureDeviceLocale;
|
|
1027
|
-
mobileShell: typeof mobileShell;
|
|
1028
|
-
mobileNfc: typeof mobileNfc;
|
|
1029
|
-
mobileStartScreenStreaming: typeof mobileStartScreenStreaming;
|
|
1030
|
-
mobileStopScreenStreaming: typeof mobileStopScreenStreaming;
|
|
1031
|
-
getSystemBars: typeof getSystemBars;
|
|
1032
|
-
mobilePerformStatusBarCommand: typeof mobilePerformStatusBarCommand;
|
|
1033
|
-
getDeviceTime: typeof getDeviceTime;
|
|
1034
|
-
mobileGetDeviceTime: typeof mobileGetDeviceTime;
|
|
1035
|
-
reset: typeof reset;
|
|
1036
|
-
closeApp: typeof closeApp;
|
|
1037
|
-
launchApp: typeof launchApp;
|
|
1038
871
|
constructor(opts?: InitialOpts, shouldValidateCaps?: boolean);
|
|
1039
872
|
get bidiProxyUrl(): string | null;
|
|
1040
873
|
get settingsApp(): SettingsApp;
|
|
1041
874
|
get isChromeSession(): boolean;
|
|
1042
875
|
isEmulator(): boolean;
|
|
1043
876
|
validateDesiredCaps(caps: any): caps is DriverCaps<C>;
|
|
877
|
+
getLogTypes(): Promise<string[]>;
|
|
878
|
+
getLog(logType: string): Promise<any>;
|
|
1044
879
|
deleteSession(sessionId?: string | null): Promise<void>;
|
|
1045
880
|
}
|
|
1046
881
|
export { AndroidDriver };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAC,GAAG,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAC,YAAY,IAAI,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAC,GAAG,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAC,YAAY,IAAI,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AA6KnC,OAAO,KAAK,EAAC,yBAAyB,EAAE,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,kBAAkB,CAAC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