takeScreenshot
takeScreenshot saves a screenshot as a PNG file in the Maestro workspace.
- takeScreenshot:
path: LoginScreen # screenshot will be stored as LoginScreen.pngIt can also be written in the short form:
- takeScreenshot: MainScreen # screenshot will be stored as MainScreen.pngPath
Screenshots are saved to a .maestro folder inside your workspace by default. You can override that location by using the --test-output-dir flag when running maestro test. For more details, see Test Output Directory.
The path is relative to the Maestro workspace directory, not to the flow file.
Last updated
Was this helpful?
