Interface SupportsMockLocationAppOption<T extends BaseOptions<T>>

    • 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 org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • 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.