Videos & posters
Learn to utilize the poster image if a video is playing within your tests while taking screenshot.
To enable the display of content for <video>
elements, videos without a poster
attribute will have the current frame serialized into an image, automatically setting it as the poster
attribute. This ensures that videos have a designated image for display when capturing screenshots.
This scenario can lead to flaky tests when the video is playing. Percy’s SDKs capture the current frame of the video when percySnapshot
is called. If this causes flakes in your tests, the recommended solution is to provide your own poster
image for the video. This ensures that the same image is captured and used when screenshots are captured.
Reference Topic
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!