terminalapp

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package terminalapp supports actions on Terminal on Chrome OS.

Index

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 Find

func Find(ctx context.Context, tconn *chrome.TestConn) (*TerminalApp, error)

Find finds an open Terminal App. An error is returned if terminal cannot be found.

func Launch

func Launch(ctx context.Context, tconn *chrome.TestConn) (*TerminalApp, error)

Launch launches the Terminal App and returns it. An error is returned if the app fails to launch.

func LaunchThroughIcon

func LaunchThroughIcon(ctx context.Context, tconn *chrome.TestConn) (*TerminalApp, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL