screenshots library

Classes

Config
Config info used to manage screenshots for android and ios.
ConfigDevice
Describe a config device

Constants

kConfigFileName → const String
default config file name
'screenshots.yaml'
kEnvConfigPath → const String
'SCREENSHOTS_YAML'

Functions

getExecutablePath(String command, String workingDirectory, {Platform platform = const LocalPlatform(), FileSystem fs = const LocalFileSystem()}) String
// Sanatizes the executable path on Windows. // https://github.com/dart-lang/sdk/issues/37751 Searches the PATH for the executable that command is supposed to launch.
isAdbPath() Future<bool>
Path to the adb executable.
isEmulatorPath() Future<bool>
Path to the emulator executable.
isImageMagicInstalled() Future<bool>
Check Image Magick is installed.
screenshot(dynamic driver, Config config, String name, {Duration timeout = const Duration(seconds: 30), bool silent = false, bool waitUntilNoTransientCallbacks = true}) Future
Called by integration test to capture images.
screenshots({String configPath, String configStr, String mode = 'normal', String flavor = kNoFlavor, bool isBuild, bool isVerbose = false}) Future<bool>
Run screenshots

Enums

DeviceType
Distinguish device OS.