Playwright Capture Screenshots and Record Videos after test execution

preview_player
Показать описание
This simple and easy to follow tutorial will guide you through how you can use playwright test to capture screenshots and record videos after test execution.

Code to copy:
await expect(
).toBeVisible();
Рекомендации по теме
Комментарии
Автор

great tutorial thanks for helping me get my head around this

peterhayman
Автор

Do you know how to make screenshots and videos of all browser? - I mean with browser's bar, that it will be definitely seen in which browser test was running?

rtpogdz
Автор

Hi, i watched ur runsettings video for C# Playwright. Can you do this in the .runsettings file just like config.js wherein you stated video="retain-on-failure" ?

abhedpatil
Автор

Hi,
I added screenshots to my HTML report and looks good when we open index.html. However, when I try to copy that report to desktop to attach my test results in JIRA, all my screenshots are blank in the report on desktop.
Can you help to fix this issue and make use of this report as test evidence to attach in JIRA?

sivaramakrishnareddyrajula