sshot

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

Documentation

Overview

Package sshot supports taking screenshots on devices during testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SShot

func SShot(ctx context.Context, s *testing.State, cr *chrome.Chrome, capture func(ctx context.Context, path string) error) error

SShot opens a new tab in Chrome which will retrieve a page from a local webserver we instantiate which renders just a solid orange background. We then use the passed in function to take a screenshot which we then check for having a majority of the pixels match our target color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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