Interface SupportsMockLocationAppOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsMockLocationAppOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MOCK_LOCATION_APP_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getMockLocationApp()
Get the identifier of the app, which is used as a system mock location provider.default T
setMockLocationApp(java.lang.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, setCapability
-
-
-
-
Field Detail
-
MOCK_LOCATION_APP_OPTION
static final java.lang.String MOCK_LOCATION_APP_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMockLocationApp
default T setMockLocationApp(java.lang.String appIdentifier)
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
default java.util.Optional<java.lang.String> getMockLocationApp()
Get the identifier of the app, which is used as a system mock location provider.- Returns:
- App identifier.
-
-