Interface SupportsMockLocationAppOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
EspressoOptions,UiAutomator2Options
public interface SupportsMockLocationAppOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the identifier of the app, which is used as a system mock location provider.default TsetMockLocationApp(String appIdentifier) Sets the package identifier of the app, which is used as a system mock location provider since Appium 1.18.0+.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
MOCK_LOCATION_APP_OPTION
- See Also:
-
-
Method Details
-
setMockLocationApp
Sets the package identifier of the app, which is used as a system mock location provider since Appium 1.18.0+. This capability has no effect on emulators. If the value is set to null or an empty string, then Appium will skip the mocked location provider setup procedure. Defaults to Appium Setting package identifier (io.appium.settings).- Parameters:
appIdentifier- The identifier of the mock location provider app.- Returns:
- self instance for chaining.
-
getMockLocationApp
Get the identifier of the app, which is used as a system mock location provider.- Returns:
- App identifier.
-