appium-webdriveragent
Version:
Package bundling WebDriverAgent
140 lines (134 loc) • 4 kB
text/typescript
// WebDriverAgentLib/Utilities/FBSettings.h
export interface WDASettings {
elementResponseAttribute?: string;
shouldUseCompactResponses?: boolean;
mjpegServerScreenshotQuality?: number;
mjpegServerFramerate?: number;
screenshotQuality?: number;
elementResponseAttributes?: string;
mjpegScalingFactor?: number;
mjpegFixOrientation?: boolean;
keyboardAutocorrection?: boolean;
keyboardPrediction?: boolean;
customSnapshotTimeout?: number;
snapshotMaxDepth?: number;
useFirstMatch?: boolean;
boundElementsByIndex?: boolean;
reduceMotion?: boolean;
defaultActiveApplication?: string;
activeAppDetectionPoint?: string;
includeNonModalElements?: boolean;
defaultAlertAction?: 'accept' | 'dismiss';
acceptAlertButtonSelector?: string;
dismissAlertButtonSelector?: string;
screenshotOrientation?: 'auto' | 'portrait' | 'portraitUpsideDown' | 'landscapeRight' | 'landscapeLeft'
waitForIdleTimeout?: number;
animationCoolOffTimeout?: number;
maxTypingFrequency?: number;
useClearTextShortcut?: boolean;
}
// WebDriverAgentLib/Utilities/FBCapabilities.h
export interface WDACapabilities {
bundleId?: string;
initialUrl?: string;
arguments?: string[];
environment?: Record<string, string>;
eventloopIdleDelaySec?: number;
shouldWaitForQuiescence?: boolean;
shouldUseTestManagerForVisibilityDetection?: boolean;
maxTypingFrequency?: number;
shouldUseSingletonTestManager?: boolean;
waitForIdleTimeout?: number;
shouldUseCompactResponses?: number;
elementResponseFields?: unknown;
disableAutomaticScreenshots?: boolean;
shouldTerminateApp?: boolean;
forceAppLaunch?: boolean;
useNativeCachingStrategy?: boolean;
forceSimulatorSoftwareKeyboardPresence?: boolean;
defaultAlertAction?: 'accept' | 'dismiss';
appLaunchStateTimeoutSec?: number;
}
export interface WebDriverAgentArgs {
device: AppleDevice; // Required
platformVersion?: string;
platformName?: string;
iosSdkVersion?: string;
host?: string;
realDevice?: boolean;
wdaBundlePath?: string;
bootstrapPath?: string;
agentPath?: string;
wdaLocalPort?: number;
wdaRemotePort?: number;
wdaBaseUrl?: string;
wdaBindingIP?: string;
prebuildWDA?: boolean;
webDriverAgentUrl?: string;
wdaConnectionTimeout?: number;
useXctestrunFile?: boolean;
usePrebuiltWDA?: boolean;
derivedDataPath?: string;
mjpegServerPort?: number;
updatedWDABundleId?: string;
wdaLaunchTimeout?: number;
usePreinstalledWDA?: boolean;
updatedWDABundleIdSuffix?: string;
showXcodeLog?: boolean;
xcodeConfigFile?: string;
xcodeOrgId?: string;
xcodeSigningId?: string;
keychainPath?: string;
keychainPassword?: string;
useSimpleBuildTest?: boolean;
allowProvisioningDeviceRegistration?: boolean;
resultBundlePath?: string;
resultBundleVersion?: string;
reqBasePath?: string;
launchTimeout?: number;
}
export interface AppleDevice {
udid: string;
simctl?: any;
devicectl?: any;
/** @deprecated We'll stop supporting idb */
idb?: any;
[key: string]: any;
}
/**
* Information of the device under test
*/
export interface DeviceInfo {
isRealDevice: boolean;
udid: string;
platformVersion: string;
platformName: string;
}
export interface XcodeBuildArgs {
realDevice: boolean; // Required
agentPath: string; // Required
bootstrapPath: string; // Required
platformVersion?: string;
platformName?: string;
iosSdkVersion?: string;
showXcodeLog?: boolean;
xcodeConfigFile?: string;
xcodeOrgId?: string;
xcodeSigningId?: string;
keychainPath?: string;
keychainPassword?: string;
prebuildWDA?: boolean;
usePrebuiltWDA?: boolean;
useSimpleBuildTest?: boolean;
useXctestrunFile?: boolean;
launchTimeout?: number;
wdaRemotePort?: number;
wdaBindingIP?: string;
updatedWDABundleId?: string;
derivedDataPath?: string;
mjpegServerPort?: number;
prebuildDelay?: number;
allowProvisioningDeviceRegistration?: boolean;
resultBundlePath?: string;
resultBundleVersion?: string;
}