appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
22 lines • 748 B
TypeScript
import type { XCUITestDriver } from '../driver';
import type { Element } from '@appium/types';
/**
* Takes a screenshot of the current screen.
*
* @returns Base64-encoded screenshot data
*/
export declare function getScreenshot(this: XCUITestDriver): Promise<string>;
/**
* Takes a screenshot of a specific element.
*
* @param el - Element to capture
* @returns Base64-encoded screenshot data
*/
export declare function getElementScreenshot(this: XCUITestDriver, el: Element<string> | string): Promise<string>;
/**
* Takes a screenshot of the current viewport.
*
* @returns Base64-encoded screenshot data
*/
export declare function getViewportScreenshot(this: XCUITestDriver): Promise<string>;
//# sourceMappingURL=screenshots.d.ts.map