Interface SupportsUserProfileOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
UiAutomator2Options

public interface SupportsUserProfileOption<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<Integer>
    Get the integer identifier of a user profile.
    default T
    setUserProfile(int profileId)
    Integer identifier of a user profile.

    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

    • setUserProfile

      default T setUserProfile(int profileId)
      Integer identifier of a user profile. By default, the app under test is installed for the currently active user, but in case it is necessary to test how the app performs while being installed for a user profile, which is different from the current one, then this capability might come in handy.
      Parameters:
      profileId - User profile identifier.
      Returns:
      self instance for chaining.
    • getUserProfile

      default Optional<Integer> getUserProfile()
      Get the integer identifier of a user profile.
      Returns:
      User profile id.