UNPKG

appium-mac2-driver

Version:

XCTest-based Appium driver for macOS apps automation

38 lines 1.28 kB
import { JWProxy } from 'appium/driver'; import type { HTTPMethod, HTTPBody, ProxyResponse } from '@appium/types'; export interface SessionOptions { reqBasePath?: string; } export declare class WDAMacProxy extends JWProxy { didProcessExit: boolean; proxyCommand(url: string, method: HTTPMethod, body?: HTTPBody): Promise<[ProxyResponse, HTTPBody]>; } export declare class WDAMacServer { private _proxy; private _process; private _serverStartupTimeoutMs; private _isProxyingToRemoteServer; get proxy(): WDAMacProxy; startSession(caps: StartSessionCapabilities, opts?: SessionOptions): Promise<void>; stopSession(): Promise<void>; private isProxyReady; /** * Returns proxy information where WDAMacServer proxy to. * * @param caps - The capabilities in the session. * @return ProxyProperties * @throws Error if 'webDriverAgentMacUrl' had invalid URL */ private parseProxyProperties; } export declare const WDA_MAC_SERVER: WDAMacServer; interface StartSessionCapabilities { webDriverAgentMacUrl?: string; systemHost?: string; systemPort?: number; serverStartupTimeout?: number; reqBasePath?: string; [key: string]: unknown; } export {}; //# sourceMappingURL=wda-mac.d.ts.map