Interface SupportsUserProfileOption<T extends BaseOptions<T>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String USER_PROFILE_OPTION  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Integer> getUserProfile()
      Get the integer identifier of a user profile.
      default T setUserProfile​(int profileId)
      Integer identifier of a user profile.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

    • Method Detail

      • 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 java.util.Optional<java.lang.Integer> getUserProfile()
        Get the integer identifier of a user profile.
        Returns:
        User profile id.