Compares PNG data and returns a diff PNG (with pngjs) and count of missmatching pixels.
reference PNG data buffer
new PNG data buffer
Determines the latest run index. Useful when using default setup data.
Generates a name for a unique name for a screenshot.
an instance of taiko
if true is capture of whole page
taiko screenshot search elements
Returns the absolute path of the reference run input directory.
Returns the absolute path of the reference image corresponding to the given current image relative path.
the path of the new image for which a reference image is required
Returns the absolute path of the run output directory.
The entrypoint for the taiko plugin. Should be called explicitly only when imported programmatically.
taiko exported API
Detect if execution is inside a container environment.
Latest run. This value determines the relative directory from which to load reference data when default setup is used.
Current run. This value determines the relative directory to store data when default setup is used.
opens the browser, ensuring renderer pixel ratio is 1:1 to display device
taiko openBrowser options
use default arguments when launching chromium, otherwise forces 1:1 pixel ratio (default)
The screencheck method that is intended to replace the taiko builtin screenshot method. This method is exported to the taiko CLI
taiko screenshot options.
taiko search elements
Configures screencheck.
screencheck configuration
Removes structure from a file path to flatten it to a filename. e.g. /foo/bar/buzz.zip becomes foo-bar-buzz-zip
a file path to simplify
Generated using TypeDoc
The taiko exported API