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.
Click to show internal directories.
Click to hide internal directories.