Documentation ¶
Overview ¶
Package terminalapp supports actions on Terminal on Chrome OS.
Index ¶
- type TerminalApp
- func (ta *TerminalApp) ClickShelfMenuItem(itemNameRegexp string) uiauto.Action
- func (ta *TerminalApp) Close() uiauto.Action
- func (ta *TerminalApp) Exit(keyboard *input.KeyboardEventWriter) uiauto.Action
- func (ta *TerminalApp) RestartCrostini(keyboard *input.KeyboardEventWriter, cont *vm.Container, userName string) uiauto.Action
- func (ta *TerminalApp) RunCommand(keyboard *input.KeyboardEventWriter, cmd string) uiauto.Action
- func (ta *TerminalApp) ShutdownCrostini(cont *vm.Container) uiauto.Action
- func (ta *TerminalApp) WaitForPrompt() uiauto.Action
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerminalApp ¶
type TerminalApp struct {
// contains filtered or unexported fields
}
TerminalApp represents an instance of the Terminal App.
func Launch ¶
Launch launches the Terminal App and returns it. An error is returned if the app fails to launch.
func LaunchThroughIcon ¶
LaunchThroughIcon launches Crostini by clicking the terminal app icon in launcher.
func (*TerminalApp) ClickShelfMenuItem ¶
func (ta *TerminalApp) ClickShelfMenuItem(itemNameRegexp string) uiauto.Action
ClickShelfMenuItem right clicks the terminal app icon on the shelf and left click the specified menu item.
func (*TerminalApp) Close ¶
func (ta *TerminalApp) Close() uiauto.Action
Close closes the Terminal App through clicking Close on shelf context menu.
func (*TerminalApp) Exit ¶
func (ta *TerminalApp) Exit(keyboard *input.KeyboardEventWriter) uiauto.Action
Exit closes the Terminal App through entering exit in the Terminal window.
func (*TerminalApp) RestartCrostini ¶
func (ta *TerminalApp) RestartCrostini(keyboard *input.KeyboardEventWriter, cont *vm.Container, userName string) uiauto.Action
RestartCrostini shuts down Crostini and launch and exit the Terminal window.
func (*TerminalApp) RunCommand ¶
func (ta *TerminalApp) RunCommand(keyboard *input.KeyboardEventWriter, cmd string) uiauto.Action
RunCommand runs command in Terminal windows.
func (*TerminalApp) ShutdownCrostini ¶
func (ta *TerminalApp) ShutdownCrostini(cont *vm.Container) uiauto.Action
ShutdownCrostini shuts down Crostini.
func (*TerminalApp) WaitForPrompt ¶
func (ta *TerminalApp) WaitForPrompt() uiauto.Action
WaitForPrompt waits until the terminal window shows a shell prompt. Useful for either waiting for the startup process to finish or for a terminal application to exit.