Interface LogFileViewerHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Log file viewer" form component. The Swing widget is a read-only
JTextArea that tails a log file and updates as new lines arrive.
Reach this handle via ScreenHandle.logFileViewer().
-
Method Summary
Modifier and TypeMethodDescriptionassertLogContains(String substring) Assert that the displayed log contains the given substring.The current log content as displayed in the text area.getFile()The log file the form component is configured to tail, with variable substitution applied.waitForLogContaining(String substring, Duration timeout) Block until the displayed log contains the given substring, or throw anAssertionErrorafter the given timeout.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getFile
The log file the form component is configured to tail, with variable substitution applied. -
getDisplayedLog
The current log content as displayed in the text area. -
waitForLogContaining
@NotNull LogFileViewerHandle waitForLogContaining(@NotNull String substring, @NotNull Duration timeout) Block until the displayed log contains the given substring, or throw anAssertionErrorafter the given timeout. -
assertLogContains
Assert that the displayed log contains the given substring. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-