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
{{ message }}
Repository navigation
Support fps and showActions in recordVideo of New Context #5346
Describe the change RecordVideo declares only dir and size. Robot Framework's argument conversion rejects keys a TypedDict does not declare, so New Context and New Persistent Context fail when recordVideo contains Playwright's fps or showActions options:
ValueError: Argument 'recordVideo' got value '{'fps': 10}' (dictionary) that cannot be converted to RecordVideo or None.
RecordVideo gets the Playwright 1.64 shape:
fps: frame rate of the recorded videos.
showActions: visual annotations on interacted elements, with duration, position (top-left, top, top-right, bottom-left, bottom, bottom-right), cursor (none, pointer) and style (point, highlight, title).
The deprecated showActions.fontSize is not declared; use style.title instead.
Release notes New Context and New Persistent Context accept fps and showActions in recordVideo. Example:
New Context recordVideo={'showActions': {'position': 'bottom', 'style': {'title': 'font-size: 32px'}}}
showActions.fontSize is not supported; use showActions.style.title, for example 'title': 'font-size: 32px'.
Found while reviewing #5326 (adopted context recording options), where the Electron library passes showActions through adopted_context_options.
Activity
feat: accept fps and showActions in recordVideo
feat: accept fps and showActions in recordVideo