UNPKG

appium-espresso-driver

Version:
25 lines 1.34 kB
import type { EspressoDriver } from '../driver.js'; import type { ScreenshotsInfo } from './types.js'; /** * Retrieves screenshots of each display available to Android. * This functionality is only supported since Android 10. * * @param displayId - Optional Android display identifier to take a screenshot for. * If not provided then screenshots of all displays are going to be returned. * If provided but no matches were found then an error is thrown. * @returns Promise that resolves to a dictionary of display screenshots, where keys are display IDs * and values contain display information and base64-encoded PNG screenshot data * @throws {Error} If display information cannot be determined or if a provided displayId is not found */ export declare function mobileScreenshots(this: EspressoDriver, displayId?: number | string): Promise<ScreenshotsInfo>; /** * Return the base 64 encoded screenshot data. * This method is called only when `appium:nativeWebScreenshot` is enabled * to avoid proxying requests to the chromedriver. * Without `appium:nativeWebScreenshot` or disabled, espresso driver * proxies screenshot endpoint requests to the espresso server directly. * * @returns {Promise<string>} */ export declare function getScreenshot(this: EspressoDriver): Promise<string>; //# sourceMappingURL=screenshot.d.ts.map