Documentation
¶
Overview ¶
Package shimlessrmaapp contains drivers for controlling the ui of Shimless RMA SWA.
Index ¶
- func CreateEmptyStateFile() error
- func CreateStateFile(state string) error
- func RemoveStateFile() error
- type RMAApp
- func (r *RMAApp) Close(ctx context.Context) error
- func (r *RMAApp) LeftClickButton(label string) uiauto.Action
- func (r *RMAApp) LeftClickCancelButton() uiauto.Action
- func (r *RMAApp) LeftClickNextButton() uiauto.Action
- func (r *RMAApp) WaitForPageToLoad(pageTitle string, timeout time.Duration) uiauto.Action
- func (r *RMAApp) WaitForStateFileDeleted() uiauto.Action
- func (r *RMAApp) WaitForUpdateOSPageToLoad() uiauto.Action
- func (r *RMAApp) WaitForWelcomePageToLoad() uiauto.Action
- func (r *RMAApp) WaitUntilButtonEnabled(label string, timeout time.Duration) uiauto.Action
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 ¶
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 ¶
App returns an existing instance of the Shimless RMA app. An error is returned if the app cannot be found.
func Launch ¶
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) LeftClickButton ¶
LeftClickButton returns a function that clicks a button.
func (*RMAApp) LeftClickCancelButton ¶
LeftClickCancelButton returns a function that clicks the cancel button.
func (*RMAApp) LeftClickNextButton ¶
LeftClickNextButton returns a function that clicks the next button.
func (*RMAApp) WaitForPageToLoad ¶
WaitForPageToLoad returns a function that waits for the a page with title |pageTitle| to load.
func (*RMAApp) WaitForStateFileDeleted ¶
WaitForStateFileDeleted returns a function that waits for the state file to be deleted.
func (*RMAApp) WaitForUpdateOSPageToLoad ¶
WaitForUpdateOSPageToLoad returns a function that waits for the Update OS state page to load.
func (*RMAApp) WaitForWelcomePageToLoad ¶
WaitForWelcomePageToLoad returns a function that waits for the Welcome state page to load.