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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<String>
    Get the identifier of the app, which is used as a system mock location provider.
    default T
    setMockLocationApp(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

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setMockLocationApp

      default T setMockLocationApp(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 Optional<String> getMockLocationApp()
      Get the identifier of the app, which is used as a system mock location provider.
      Returns:
      App identifier.