galleryapp

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

Documentation

Overview

Package galleryapp contains common functions used in the Gallery (aka Backlight) app.

Index

Constants

This section is empty.

Variables

View Source
var DialogFinder = nodewith.Role(role.AlertDialog).Ancestor(RootFinder)

DialogFinder is the finder of popup dialog in Gallery app.

View Source
var RootFinder = nodewith.NameStartingWith(apps.Gallery.Name).HasClass("BrowserFrame")

RootFinder is the finder of Gallery app root window.

Functions

This section is empty.

Types

type GalleryContext

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

GalleryContext represents a context of Gallery app.

func NewContext

func NewContext(cr *chrome.Chrome, tconn *chrome.TestConn) *GalleryContext

NewContext creates a new context of the Gallery app.

func (*GalleryContext) AssertZeroState

func (gc *GalleryContext) AssertZeroState() uiauto.Action

AssertZeroState asserts that Gallery is on 'open image' page.

func (*GalleryContext) CloseApp

func (gc *GalleryContext) CloseApp() uiauto.Action

CloseApp returns an action closing Gallery app.

func (*GalleryContext) DeleteAndConfirm

func (gc *GalleryContext) DeleteAndConfirm() uiauto.Action

DeleteAndConfirm returns an action clicking 'Delete' button and then 'Confirm' to remove current opened media file. It assumes a valid media file is opened.

func (*GalleryContext) EvalJSWithShadowPiercer

func (gc *GalleryContext) EvalJSWithShadowPiercer(ctx context.Context, expr string, out interface{}) error

EvalJSWithShadowPiercer executes javascript in Gallery app web page.

func (*GalleryContext) UIConn

func (gc *GalleryContext) UIConn(ctx context.Context) (*chrome.Conn, error)

UIConn returns a connection to the Gallery app HTML page, where JavaScript can be executed to simulate interactions with the UI. The caller should close the returned connection. e.g. defer galleryAppConn.Close().

Jump to

Keyboard shortcuts

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