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 -
Method Summary
Modifier and TypeMethodDescriptionGet the integer identifier of a user profile.default TsetUserProfile(int profileId) Integer identifier of a user profile.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
USER_PROFILE_OPTION
- See Also:
-
-
Method Details
-
setUserProfile
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
Get the integer identifier of a user profile.- Returns:
- User profile id.
-