Package io.appium.java_client
Interface HasAppStrings
-
- All Superinterfaces:
CanRememberExtensionPresence
,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
,IOSDriver
public interface HasAppStrings extends ExecutesMethod, CanRememberExtensionPresence
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Map<java.lang.String,java.lang.String>
getAppStringMap()
Get all defined Strings from an app for the default language.default java.util.Map<java.lang.String,java.lang.String>
getAppStringMap(java.lang.String language)
Get all defined Strings from an app for the specified language.default java.util.Map<java.lang.String,java.lang.String>
getAppStringMap(java.lang.String language, java.lang.String stringFile)
Get all defined Strings from an app for the specified language and strings filename.-
Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsence
-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
getAppStringMap
default java.util.Map<java.lang.String,java.lang.String> getAppStringMap()
Get all defined Strings from an app for the default language. See the documentation for 'mobile: getAppStrings' extension for more details.- Returns:
- a map with localized strings defined in the app
-
getAppStringMap
default java.util.Map<java.lang.String,java.lang.String> getAppStringMap(java.lang.String language)
Get all defined Strings from an app for the specified language. See the documentation for 'mobile: getAppStrings' extension for more details.- Parameters:
language
- strings language code- Returns:
- a map with localized strings defined in the app
-
getAppStringMap
default java.util.Map<java.lang.String,java.lang.String> getAppStringMap(java.lang.String language, java.lang.String stringFile)
Get all defined Strings from an app for the specified language and strings filename. See the documentation for 'mobile: getAppStrings' extension for more details.- Parameters:
language
- strings language codestringFile
- strings filename. Ignored on Android- Returns:
- a map with localized strings defined in the app
-
-