Interface InstallerApplicationSession
- All Superinterfaces:
AutoCloseable, Session
A session driving a custom installer application selected by its application id from an installation directory.
Exposes the base
Context.-
Method Summary
Methods inherited from interface Session
alert, alert, awaitExit, awaitExit, close, createUserDialog, createUserDialog, currentScreen, currentScreen, dialog, dialog, fileChooser, fileChooser, getInstallationDirectory, getLanguageId, getLogFile, getVariable, isFinished, languageDialog, languageDialog, navigateUntil, navigateUntilScreen, passwordDialog, passwordDialog, readLog, runningProcessesDialog, runningProcessesDialog, terminate, waitForScreenChange, waitForScreenChange, waitForScreenId, waitForScreenIdModifier and TypeMethodDescriptionalert()Wait for a JOptionPane-built alert.Same asSession.alert()with an explicit timeout.intBlock until the installer-application thread exits and return its exit code.intSame asSession.awaitExit()with an explicit timeout.voidclose()CallsSession.terminate()if the session is still running, then deletes the extraction cache for media-file based sessions and deletes the auto-created installation directory if the session created it.Wait for the create-user dialog shown by the "Create User..." button of a "Windows user selector" form component.createUserDialog(Duration timeout) Same asSession.createUserDialog()with an explicit timeout.The currently active wizard screen.currentScreen(Duration timeout) Same asSession.currentScreen()with an explicit timeout.dialog(DialogMatcher matcher) Wait for a modal dialog whose backing window matches the givenDialogMatcher.dialog(DialogMatcher matcher, Duration timeout) Same asSession.dialog(DialogMatcher)with an explicit timeout.Wait for the modal JFileChooser dialog shown by a Browse button.fileChooser(Duration timeout) Same asSession.fileChooser()with an explicit timeout.The active installation directory.The current installer language id, e.g.The installer log file being captured by this session.getVariable(String name) Returns the installer variable with the given name, ornullif no variable with that name is set on the installer context.booleanWhether the installer-application thread has exited.Wait for the startup language-selection dialog.languageDialog(Duration timeout) Same asSession.languageDialog()with an explicit timeout.default voidnavigateUntil(int maxHops, Predicate<String> isTerminal) Advance the wizard one screen at a time until the given predicate matches the current screen id.default voidnavigateUntilScreen(String terminalScreenId, int maxHops) Advance the wizard until the screen with the given id is the active screen.Wait for the credentials prompt of a password dialog.passwordDialog(Duration timeout) Same asSession.passwordDialog()with an explicit timeout.readLog()Read the entire installer log as a string.Wait for the running-processes dialog shown by a "Check for running processes" action.runningProcessesDialog(Duration timeout) Same asSession.runningProcessesDialog()with an explicit timeout.voidForce a shutdown by interrupting the installer thread and tearing down.Wait until the active screen changes.waitForScreenChange(Duration timeout) Same asSession.waitForScreenChange()with an explicit timeout.Wait until the screen with the given id becomes the active screen.waitForScreenId(String id, Duration timeout) Same asSession.waitForScreenId(String)with an explicit timeout.