MarketSquare / MarketSquare/robotframework-browser

recordVideo doesn't work with Persistent Context

Open
#3,965 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority: medium
Dominant language
Python
Stars
655
Forks
147
Avg merge
5h 27m
Merged PRs (30d)
59

Description

**Describe the bug**
The `recordVideo` parameter, when used in the `New Persistent Context`, doesn't even load the web page, making the test fail.

**To Reproduce**
Steps to reproduce the behavior:
1. Call for a New Persistent Context passing the `recordVideo` parameter.
e.g: `New Persistent Context browser=chromium url=https://google.com headless=False recordVideo=${recordVideo}`

**Expected behavior**
The test should work as intended.

**Desktop (please complete the following information):**
- OS: macOS Sonoma 14.7
- Browser: chromium
- Version: 131.0.6778.33
- Browser version: robotframework-browser==19.1.1

**Additional context**
This error doesn't appear when calling `Open Browser/New Page` and `New Context`.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the `New Persistent Context` keyword and its `recordVideo` parameter, then compare its setup with `Open Browser/New Page` and `New Context`. Reproduce the macOS Chromium case using the example command and inspect the resulting page-load failure. Done means persistent contexts with `recordVideo` load the page and the existing alternative flows still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.