Interface LicenseHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "License agreement" form component. The Swing widget is a
JEditorPane that renders the license text.
Reach this handle via ScreenHandle.license().
-
Method Summary
Modifier and TypeMethodDescriptionaccept()Select the accept radio button.The rendered license text with HTML stripped.booleanWhether the user has scrolled to the bottom of the license at least once.booleanWhether the accept radio button is currently selected.booleanWhether the read-all-required option is enabled on the form component.reject()Select the refuse radio button.Scroll the license text pane to the bottom and wait for the runtime to register the scroll.scrollToBottom(Duration timeout) Same asscrollToBottom()but with an explicit timeout for the scroll-registered check.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getDisplayedText
The rendered license text with HTML stripped. -
accept
Select the accept radio button. -
reject
Select the refuse radio button. -
isAccepted
boolean isAccepted()Whether the accept radio button is currently selected. -
isReadAllRequired
boolean isReadAllRequired()Whether the read-all-required option is enabled on the form component. -
hasBeenScrolledToBottom
boolean hasBeenScrolledToBottom()Whether the user has scrolled to the bottom of the license at least once. -
scrollToBottom
Scroll the license text pane to the bottom and wait for the runtime to register the scroll. Required beforeaccept()whenisReadAllRequired()is true. -
scrollToBottom
Same asscrollToBottom()but with an explicit timeout for the scroll-registered check. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-