UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

32 lines • 1.33 kB
import type { PinchAndZoomOptions } from '../types.js'; /** * Run a `mobile:` / platform execute script over classic WebDriver * `executeScript` so Appium extensions are not routed through BiDi * `scriptCallFunction`. Unknown-method errors become a hard error that * names both the upgrade path and the possibility that the current * driver simply does not implement the extension. */ export declare function executeMobile<T = unknown>(browser: WebdriverIO.Browser, script: string, args?: unknown): Promise<T>; export declare function getNativeContext({ capabilities, isMobile }: { capabilities: WebdriverIO.Capabilities; isMobile: boolean; }): boolean; export declare function getMobileContext({ capabilities, isAndroid, isNativeContext }: { capabilities: WebdriverIO.Capabilities; isAndroid: boolean; isNativeContext: boolean; }): string | undefined; export declare function calculateAndroidPinchAndZoomSpeed({ browser, duration, scale }: { browser: WebdriverIO.Browser; duration: number; scale: number; }): number; export declare function validatePinchAndZoomOptions({ browser, gesture, options }: { browser: WebdriverIO.Browser; gesture: 'pinch' | 'zoom'; options: Partial<PinchAndZoomOptions>; }): { scale: number; duration: number; }; //# sourceMappingURL=mobile.d.ts.map