Class NeoUserProfile
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoUserProfile
public class NeoUserProfile extends NeoComponent
Represents an instance of User slide out popper
providing direct access to functionalities like logout, switch User,
Navigate to user settings view.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
static org.openqa.selenium.By
LEGACY_PERSPECTIVE_FRAME
static java.lang.String
LOG_OUT
static java.lang.String
SESSION_INFO
static org.openqa.selenium.By
SHOW_ROLES_BUTTON
static java.lang.String
SWITCH_USER
static java.lang.String
USER_SETTINGS
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoUserProfile(NeoUIContext context)
NeoUserProfile(NeoUIContext context, org.openqa.selenium.WebElement element)
Contructs an instance ofNeoUserProfile
popper using theNeoUIContext
andWebElement
provided as input params -
Method Summary
Modifier and Type Method Description NeoButton
getButton(java.lang.String buttonText)
void
logoutUsingButton()
It performs the logout of current user by using buttonsNeoPerspective
navigateToUserSettings()
This method opens the User Settings page and returns the current active(User Settings)NeoPerspective
void
showSessionInformation()
Opens the "Session Information" tab by clicking the associated Tools menu item in Neo Desktop UI.void
switchRoleUsingButton(java.lang.String roleName)
This method changes the role of the user from current role to the roleName parameter passed to the methodvoid
switchUser(java.lang.String username)
Switches to specified user, using UI controls only (no JS shortcuts).Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
LOG_OUT
public static final java.lang.String LOG_OUT- See Also:
- Constant Field Values
-
USER_SETTINGS
public static final java.lang.String USER_SETTINGS- See Also:
- Constant Field Values
-
SWITCH_USER
public static final java.lang.String SWITCH_USER- See Also:
- Constant Field Values
-
SESSION_INFO
public static final java.lang.String SESSION_INFO- See Also:
- Constant Field Values
-
SHOW_ROLES_BUTTON
public static final org.openqa.selenium.By SHOW_ROLES_BUTTON -
LEGACY_PERSPECTIVE_FRAME
public static final org.openqa.selenium.By LEGACY_PERSPECTIVE_FRAME
-
-
Constructor Details
-
NeoUserProfile
Contructs an instance ofNeoUserProfile
popper using theNeoUIContext
andWebElement
provided as input params- Parameters:
context
-element
-
-
NeoUserProfile
-
-
Method Details
-
getButton
-
navigateToUserSettings
This method opens the User Settings page and returns the current active(User Settings)NeoPerspective
- Returns:
-
logoutUsingButton
public void logoutUsingButton()It performs the logout of current user by using buttons -
switchRoleUsingButton
public void switchRoleUsingButton(java.lang.String roleName)This method changes the role of the user from current role to the roleName parameter passed to the method- Parameters:
roleName
-
-
switchUser
public void switchUser(java.lang.String username)Switches to specified user, using UI controls only (no JS shortcuts). Current user should be of role InstanceAdminUser so that switchUser option is available in UI.- Parameters:
userName
- user name to switch to
-
showSessionInformation
public void showSessionInformation()Opens the "Session Information" tab by clicking the associated Tools menu item in Neo Desktop UI.
-