Skip to content

Support fps and showActions in recordVideo of New Context #5346

Description

@aaltat

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

  1. added this to the v20.7.0 milestone on Oct 16, 2026
  2. added theissue type on Oct 16, 2026
  3. added a commit that references this issue on Oct 17, 2026
    da92c7b
  4. added a commit that references this issue on Oct 17, 2026
    b265f7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions