shimlessrmaapp

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: 13 Imported by: 0

Documentation

Overview

Package shimlessrmaapp contains drivers for controlling the ui of Shimless RMA SWA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyStateFile

func CreateEmptyStateFile() error

CreateEmptyStateFile creates a valid empty state file.

func CreateStateFile

func CreateStateFile(state string) error

CreateStateFile creates a state file with contents |state|.

func RemoveStateFile

func RemoveStateFile() error

RemoveStateFile deletes the state file, if it exists.

Types

type RMAApp

type RMAApp struct {
	// contains filtered or unexported fields
}

RMAApp represents an instance of the Shimless RMA App.

func App

func App(ctx context.Context, tconn *chrome.TestConn) (*RMAApp, error)

App returns an existing instance of the Shimless RMA app. An error is returned if the app cannot be found.

func Launch

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

Launch launches the Shimless RMA App and returns it. An error is returned if the app fails to launch. TODO(gavinwill): This method and all support for running the app manually should be removed once the app launch at boot cls land.

func (*RMAApp) Close

func (r *RMAApp) Close(ctx context.Context) error

Close closes the Shimless RMA App.

func (*RMAApp) LeftClickButton

func (r *RMAApp) LeftClickButton(label string) uiauto.Action

LeftClickButton returns a function that clicks a button.

func (*RMAApp) LeftClickCancelButton

func (r *RMAApp) LeftClickCancelButton() uiauto.Action

LeftClickCancelButton returns a function that clicks the cancel button.

func (*RMAApp) LeftClickNextButton

func (r *RMAApp) LeftClickNextButton() uiauto.Action

LeftClickNextButton returns a function that clicks the next button.

func (*RMAApp) WaitForPageToLoad

func (r *RMAApp) WaitForPageToLoad(pageTitle string, timeout time.Duration) uiauto.Action

WaitForPageToLoad returns a function that waits for the a page with title |pageTitle| to load.

func (*RMAApp) WaitForStateFileDeleted

func (r *RMAApp) WaitForStateFileDeleted() uiauto.Action

WaitForStateFileDeleted returns a function that waits for the state file to be deleted.

func (*RMAApp) WaitForUpdateOSPageToLoad

func (r *RMAApp) WaitForUpdateOSPageToLoad() uiauto.Action

WaitForUpdateOSPageToLoad returns a function that waits for the Update OS state page to load.

func (*RMAApp) WaitForWelcomePageToLoad

func (r *RMAApp) WaitForWelcomePageToLoad() uiauto.Action

WaitForWelcomePageToLoad returns a function that waits for the Welcome state page to load.

func (*RMAApp) WaitUntilButtonEnabled

func (r *RMAApp) WaitUntilButtonEnabled(label string, timeout time.Duration) uiauto.Action

WaitUntilButtonEnabled returns a function that waits |timeout| for a button to be enabled.

Jump to

Keyboard shortcuts

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