初始化
This commit is contained in:
13
typings/appium-xcuitest-driver/build/lib/device-connections-factory.d.ts
vendored
Normal file
13
typings/appium-xcuitest-driver/build/lib/device-connections-factory.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
declare class DeviceConnectionsFactory {
|
||||
listConnections (udid?: string | null, port?: string | null, strict?: boolean): string[];
|
||||
requestConnection(
|
||||
udid: string,
|
||||
port: number,
|
||||
options: { usePortForwarding?: boolean; devicePort?: number },
|
||||
): Promise<void>;
|
||||
releaseConnection(udid: string | null, port: number | null): void;
|
||||
}
|
||||
declare const DEVICE_CONNECTIONS_FACTORY: DeviceConnectionsFactory;
|
||||
|
||||
export { DEVICE_CONNECTIONS_FACTORY, DeviceConnectionsFactory };
|
||||
export default DEVICE_CONNECTIONS_FACTORY;
|
||||
33
typings/appium-xcuitest-driver/build/lib/driver.d.ts
vendored
Normal file
33
typings/appium-xcuitest-driver/build/lib/driver.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { BaseDriver } from 'appium-base-driver';
|
||||
|
||||
declare interface ScreenInfo {
|
||||
statusBarSize: { width: number; height: number };
|
||||
scale: number;
|
||||
}
|
||||
|
||||
declare interface Gesture {
|
||||
action: string;
|
||||
options: {
|
||||
x?: number;
|
||||
y?: number;
|
||||
ms?: number;
|
||||
};
|
||||
}
|
||||
|
||||
declare class XCUITestDriver extends BaseDriver {
|
||||
constructor(opts: Record<string, any>, shouldValidateCaps: boolean);
|
||||
public createSession(...args: any): Promise<any>;
|
||||
public findElement(strategy: string, selector: string): Promise<any>;
|
||||
public getSize(element: any): Promise<{ width: number; height: number } | undefined>;
|
||||
public getScreenInfo(): Promise<ScreenInfo>;
|
||||
public performTouch(gestures: Gesture[]): Promise<any>;
|
||||
public mobilePressButton(args: { name: string }): Promise<any>;
|
||||
public stop(): Promise<void>;
|
||||
public deleteSession(): Promise<void>;
|
||||
public updateSettings(opts: any): Promise<void>;
|
||||
public keys(value: string): Promise<void>;
|
||||
public wda: any;
|
||||
}
|
||||
|
||||
export default XCUITestDriver;
|
||||
export { XCUITestDriver };
|
||||
9
typings/appium-xcuitest-driver/build/lib/server.d.ts
vendored
Normal file
9
typings/appium-xcuitest-driver/build/lib/server.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Server as HttpServer } from 'http';
|
||||
|
||||
import { XCUITestDriver } from './driver';
|
||||
|
||||
export class Server extends HttpServer {
|
||||
public driver: XCUITestDriver;
|
||||
}
|
||||
|
||||
export function startServer(port: string | number, address?: string): Server;
|
||||
Reference in New Issue
Block a user