webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
22 lines • 1.09 kB
TypeScript
/**
* iOS SpringBoard bundle ID used to activate the system UI so permission
* dialogs are accessible to Appium.
*/
export declare const SPRINGBOARD_BUNDLE_ID = "com.apple.springboard";
export declare function androidButtonSelector(buttonText: string): string;
export declare function assertMobileNativeDialogCommand(browser: WebdriverIO.Browser, commandName: string): void;
/**
* True when the driver reports that no dialog/button/alert is present.
* Matches the same Appium and W3C variants that WebdriverIO already treats
* as a missing element in shared response handling.
*/
export declare function isMissingDialogError(err: unknown): boolean;
/**
* Handle a native iOS/Android alert or permission dialog.
*
* When `buttonText` is provided the matching button is clicked (accessibility
* ID on iOS, XPath `@text` on Android). Otherwise the default
* accept/dismiss alert command is used.
*/
export declare function handleMobileDialog(browser: WebdriverIO.Browser, action: 'accept' | 'dismiss', buttonText?: string): Promise<void>;
//# sourceMappingURL=mobileDialog.d.ts.map