@wdio/image-comparison-core
Version:
Image comparison core module for @wdio/visual-service - WebdriverIO visual testing framework
18 lines • 1.16 kB
TypeScript
import type { ElementPosition } from '../clientSideScripts/elementPosition.interfaces.js';
import type { DeviceRectangles } from './rectangles.interfaces.js';
import type { GetElementPositionAndroidOptions, GetElementPositionDesktopOptions } from './elementPosition.interfaces.js';
/**
* Get the element position on a Android device
*/
export declare function getElementPositionAndroid(browserInstance: WebdriverIO.Browser, element: HTMLElement, { deviceRectangles, isAndroidNativeWebScreenshot }: GetElementPositionAndroidOptions): Promise<ElementPosition>;
/**
* Get the element position on a desktop browser
*/
export declare function getElementPositionDesktop(browserInstance: WebdriverIO.Browser, element: HTMLElement, { innerHeight, screenshotHeight }: GetElementPositionDesktopOptions): Promise<ElementPosition>;
/**
* Get the element position calculated from the webview
*/
export declare function getElementWebviewPosition(browserInstance: WebdriverIO.Browser, element: HTMLElement, { deviceRectangles: { viewport: { x, y } } }: {
deviceRectangles: DeviceRectangles;
}): Promise<ElementPosition>;
//# sourceMappingURL=elementPosition.d.ts.map