Skip to content

Creating screenshots of all elements, not only screens #1026

@AviPaperno

Description

@AviPaperno

Background:
Currently, when using Wokwi-CLI for testing, many modules—such as led-matrix or neopixels—cannot be properly tested because the take-screenshot command only supports capturing the entire display buffer. This limitation reduces the range of tests that can be automated and makes it difficult to validate the visual output of specific components.

Suggestion:
Please add functionality to the take-screenshot command to allow capturing screenshots of individual components (e.g., led-matrix, neopixels) or a user-defined region, not just the full display buffer.

Benefit:
This feature would enable more granular automated tests and validation of specific modules, improving the quality and coverage of test suites.

Additional:
I have implemented a similar solution using Selenium to capture specific areas, so may be my solution can help
Here is link: https://discord.com/channels/787627282663211009/1374193521174511686

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions