Documentation
¶
Overview ¶
Package galleryapp contains common functions used in the Gallery (aka Backlight) app.
Index ¶
- Variables
- type GalleryContext
- func (gc *GalleryContext) AssertZeroState() uiauto.Action
- func (gc *GalleryContext) CloseApp() uiauto.Action
- func (gc *GalleryContext) DeleteAndConfirm() uiauto.Action
- func (gc *GalleryContext) EvalJSWithShadowPiercer(ctx context.Context, expr string, out interface{}) error
- func (gc *GalleryContext) UIConn(ctx context.Context) (*chrome.Conn, error)
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.
Click to show internal directories.
Click to hide internal directories.