playwright-video::clapper_board:保存Playwright页面的视频

时间:2021-03-20 18:00:59
【文件属性】:
文件名称:playwright-video::clapper_board:保存Playwright页面的视频
文件大小:100KB
文件格式:ZIP
更新时间:2021-03-20 18:00:59
e2e video-capture e2e-testing playwright TypeScript 剧本视频 :clapper_board:保存“ 页面的录像(仅适用于Chromium) 当Playwright在Firefox和WebKit中添加对Screencast API的支持时,将对其进行更新以支持这些浏览器。 安装 npm i playwright playwright-video @ffmpeg-installer/ffmpeg 如果已经安装了 ,则可以通过设置FFMPEG_PATH环境变量来跳过@ffmpeg-installer/ffmpeg安装。 npm i playwright playwright-video 使用 const { chromium } = require ( 'playwright' ) ; const { saveVideo } = require ( 'playwright-video' ) ; ( async ( ) => { const browser = awa
【文件预览】:
playwright-video-master
----package.json(2KB)
----.eslintrc.json(519B)
----.github()
--------workflows()
----.prettierrc(167B)
----jest.config.js(324B)
----tests()
--------ScreencastFrameCollector.test.ts(3KB)
--------PageVideoCapture.test.ts(2KB)
--------saveVideo.test.ts(1KB)
--------SortedFrameQueue.test.ts(3KB)
--------VideoWriter.test.ts(1KB)
--------utils.test.ts(840B)
----package-lock.json(350KB)
----src()
--------utils.ts(1KB)
--------PageVideoCapture.ts(3KB)
--------VideoWriter.ts(2KB)
--------example.js(422B)
--------ScreencastFrameCollector.ts(6KB)
--------SortedFrameQueue.ts(2KB)
--------index.ts(137B)
--------saveVideo.ts(300B)
----tsconfig.json(299B)
----LICENSE.md(1KB)
----.gitignore(265B)
----README.md(3KB)
----.eslintignore(9B)
----.editorconfig(247B)

网友评论