appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
47 lines • 1.47 kB
TypeScript
import type { LogEntry } from 'appium-adb';
import type { AndroidDriver } from './driver';
export type { LogEntry };
export declare const ADB_SHELL_FEATURE = "adb_shell";
export declare const ADB_LISTEN_ALL_NETWORK_FEATURE = "adb_listen_all_network";
export declare const GET_SERVER_LOGS_FEATURE = "get_server_logs";
/**
* Assert the presence of particular keys in the given object
*
* @param argNames one or more key names
* @param opts the object to check
* @returns the same given object
*/
export declare function requireArgs(argNames: string | string[], opts: Record<string, any>): Record<string, any>;
/**
*
* @param cap
* @returns
*/
export declare function parseArray(cap: string | string[]): string[];
/**
* @this AndroidDriver
* @returns
*/
export declare function removeAllSessionWebSocketHandlers(this: AndroidDriver): Promise<void>;
interface LogEntryWithPrefix {
message: string;
prefix?: string;
timestamp?: number;
level?: string;
}
/**
*
* @param x
* @returns
*/
export declare function nativeLogEntryToSeleniumEntry(x: LogEntryWithPrefix): LogEntry;
/**
*
* @see {@link https://github.com/SeleniumHQ/selenium/blob/0d425676b3c9df261dd641917f867d4d5ce7774d/java/client/src/org/openqa/selenium/logging/LogEntry.java}
* @param timestamp
* @param message
* @param level
* @returns
*/
export declare function toLogRecord(timestamp: number, message: string, level?: string): LogEntry;
//# sourceMappingURL=utils.d.ts.map