Interface SupportsUserProfileOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 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 io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
USER_PROFILE_OPTION
static final java.lang.String USER_PROFILE_OPTION
- See Also:
- Constant Field Values
-
-
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.
-
-