UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

23 lines 1.22 kB
import type { XCUITestDriver } from '../driver'; /** * Sets the primary clipboard's content on the device under test. * * @param content - The content to be set as base64 encoded string. * @param contentType - The type of the content to set. * Only `plaintext`, 'image' and 'url' are supported. * @param mode - The mode to use. If set to 'xpc', the clipboard content will be set using * the RemoteXPC Pasteboard service. */ export declare function setClipboard(this: XCUITestDriver, content: string, contentType?: string, mode?: string): Promise<void>; /** * Gets the content of the primary clipboard on the device under test. * * @param contentType - The type of the content to get. * Only `plaintext`, 'image' and 'url' are supported. * @param mode - The mode to use. If set to 'xpc', the clipboard content will be retrieved using the * RemoteXPC Pasteboard service. * @returns The actual clipboard content encoded into base64 string. * An empty string is returned if the clipboard contains no data. */ export declare function getClipboard(this: XCUITestDriver, contentType?: string, mode?: string): Promise<string>; //# sourceMappingURL=clipboard.d.ts.map