UNPKG

appium-android-driver

Version:

Android UiAutomator and Chrome support for Appium

21 lines 1.04 kB
import type { StringRecord } from '@appium/types'; import type { AndroidDriver } from '../driver'; /** * Gets the localized strings from the application. * * @param language The language code to retrieve strings for. If not provided, * the device's current language will be used. * @returns Promise that resolves to a mapping of string keys to their localized values. */ export declare function getStrings(this: AndroidDriver, language?: string | null): Promise<StringRecord>; /** * Ensures the device locale is set to the specified language, country, and optional script. * * @param language The language code (e.g., 'en', 'fr'). * @param country The country code (e.g., 'US', 'FR'). * @param script Optional script code. * @returns Promise that resolves when the locale is set and verified. * @throws {Error} If the locale cannot be set or verified. */ export declare function ensureDeviceLocale(this: AndroidDriver, language: string, country: string, script?: string): Promise<void>; //# sourceMappingURL=resources.d.ts.map