Interface UserSelectorHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Windows user selector" form component. The principal Swing widget is a
non-editable
JTextField showing the currently selected Windows users, paired with a
Browse button and an optional Create User button that open native Windows pickers.
Platform note: The Browse and Create User pickers are Windows-only. On Linux and macOS the native picker code returns immediately without making a selection, leaving the form's selected SIDs unchanged. Tests on non-Windows platforms can verify that the form component renders, read the displayed account names, and inspect which buttons are present, but cannot drive an actual user pick.
Reach this handle via ScreenHandle.userSelector().
-
Method Summary
Modifier and TypeMethodDescriptionClick the Browse button.Click the Create User button.The text currently shown in the read-only text field, typically a semicolon-separated list of account names, or the empty string when nothing has been selected.String[]The SIDs currently selected on this form, or an empty array if nothing has been picked.booleanWhether the Create User button is rendered on this form.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getDisplayedText
The text currently shown in the read-only text field, typically a semicolon-separated list of account names, or the empty string when nothing has been selected. -
getSelectedSids
The SIDs currently selected on this form, or an empty array if nothing has been picked. Returns a defensive copy. -
isCreateButtonShown
boolean isCreateButtonShown()Whether the Create User button is rendered on this form. -
clickBrowse
Click the Browse button. On Windows this opens theObjectPickernative dialog. On Linux and macOS it returns immediately without picking, so the selection is unchanged. -
clickCreateUser
Click the Create User button. On Windows this opens theCreateUserDialog, which the test reaches viasession.createUserDialog. ThrowsComponentNotFoundExceptionif the form does not render the Create button. On non-Windows platforms the click is a no-op at the form component level. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-