You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be nice to be able while in script to be able to get the screenshot/video/trace file directly within script.
my specific use case, is that as part of using pytest, use allure-pytest. with this when was using selenium could easily attach screenshots via code that looked like below and wondering if similar functionality could be possible with the screenshot/video/trace functionality within playwright
if there is already way to do this or better suggestion given current functionality within playwright, if could give reference let me know,
my initial guess is perhaps expected to use like https://playwright.dev/python/docs/api/class-video#video-save-as and using pytest-tempdir could save video, there and read into an allure attach (i have not tried this yet but if end up doing and works may end up closing issue, unless others think suggestion would be useful)
The text was updated successfully, but these errors were encountered:
I brought up similar comment in microsoft/playwright-pytest#77 but thought this comment likely was best served here.
it would be nice to be able while in script to be able to get the screenshot/video/trace file directly within script.
my specific use case, is that as part of using pytest, use allure-pytest. with this when was using selenium could easily attach screenshots via code that looked like below and wondering if similar functionality could be possible with the screenshot/video/trace functionality within playwright
if there is already way to do this or better suggestion given current functionality within playwright, if could give reference let me know,
my initial guess is perhaps expected to use like https://playwright.dev/python/docs/api/class-video#video-save-as and using pytest-tempdir could save video, there and read into an allure attach (i have not tried this yet but if end up doing and works may end up closing issue, unless others think suggestion would be useful)
The text was updated successfully, but these errors were encountered: