# Browser 21.1.0

> November 23, 2026. HTTP follows the browser fetch API

Source: [https://robotframework-browser.org/releases/21.1.0](https://robotframework-browser.org/releases/21.1.0)

- **Released**: November 23, 2026
- **Playwright**: 1.65.1
- **Supports**: Python 3.11.5+, Node 22/24 LTS and Node 26, and Robot Framework 7.1.1+

## Most important enhancements

### `HTTP` follows the browser fetch API ([#5109](https://github.com/MarketSquare/robotframework-browser/issues/5109))

`HTTP` sends a page request with `fetch` in the active page. Before, it supported
only `url`, `method`, `body` and `headers`, and `HEAD` did not work. Now `HTTP`
takes the arguments of the browser fetch API, with the same names. It can send a
form, a `multipart/form-data` file upload and a binary HTTP body. It returns the
response body as `bytes`, `text` and `json`, the same as `Wait For Response`.
Also, `HTTP` now stops after the library timeout, but before it had no time limit.
To wait without a limit, use `timeout=0`. Many thanks to René for this
enhancement.

### Abort Requests, Remove Route Rule, Remove All Route Rules ([#5617](https://github.com/MarketSquare/robotframework-browser/issues/5617))

This release adds route rules to Browser. A route rule controls the requests that
match a glob or a regular expression before they go to the network. You can add a
route rule to the active context or to the active page:

- A context rule applies to all pages of the context, also to pages that open
later.
- A page rule applies only to the page that you add it to.

A route rule stays until its context or page closes, until you remove it, or until
it has run `times` times. It does not end at the end of a test or suite.

Each keyword that adds a route rule returns a rule id. `Remove Route Rule` removes
the rule with that id. `Remove All Route Rules` removes all rules of the active
context and of its pages. Both keywords log how many times each rule ran
([#5628](https://github.com/MarketSquare/robotframework-browser/issues/5628)).

`Abort Requests` is the first keyword that adds a route rule. It makes the matching
requests fail with an error code. Use it to test an error path, to block analytics,
or to make a server unavailable to the page.

### Mock Responses ([#5622](https://github.com/MarketSquare/robotframework-browser/issues/5622))

`Mock Responses` adds a route rule that gives a mock response to the page. The
request does not go to the server. You set the status, the headers and the HTTP
body of the mock response. Use it to test the frontend without the backend, or to
get an error status such as `500`. The rule uses the same `matcher`, `times` and
`on` arguments as `Abort Requests`.

### Modify Responses ([#5625](https://github.com/MarketSquare/robotframework-browser/issues/5625))

`Modify Responses` adds a route rule that sends the request to the server and then
changes the real response. The page gets the real response, and only the parts that
you specify are changed. You can change the status, the headers and the HTTP body.
With `json_patch` you can change one field of a JSON body. Before the request goes
to the server, the rule can also change its URL, method, headers and HTTP body.

### rfbrowser init and install offer chromium-tip-of-tree-headless-shell, which Playwright 1.63 removed ([#5492](https://github.com/MarketSquare/robotframework-browser/issues/5492))

Playwright 1.63 removed the `chromium-tip-of-tree-headless-shell` browser. But
`rfbrowser init` and `rfbrowser install` still showed it as a browser to install.
Now these commands do not show it.

### rfbrowser init offers bidi-chromium, which Playwright cannot install ([#5493](https://github.com/MarketSquare/robotframework-browser/issues/5493))

`rfbrowser init` showed `bidi-chromium` as a browser to install, but Playwright
cannot install it, so the installation failed. Now `rfbrowser init` does not show
`bidi-chromium`.

### Recorder writes English keyword names when Browser is imported with a translation ([#5509](https://github.com/MarketSquare/robotframework-browser/issues/5509))

When you import Browser with a translation, Robot Framework knows only the
translated keyword names. But `Record Keyword` and `Record Keywords` wrote the
English names, so the recorded keyword failed. Now each Keyword Call uses the
translated name in the file, in the returned text and in the toolbar. A keyword
without a translation keeps its English name. Many thanks to René for the fix.

### Recorder ignores the Robot Framework language of the target file ([#5510](https://github.com/MarketSquare/robotframework-browser/issues/5510))

`Record Keyword` and `Record Keywords` always wrote the keyword section header,
`[Tags]` and `[Arguments]` in English. Because of this, a file with `Language: de`
had two languages in it. Now the Recorder uses the language of the file. First it
uses the language that the file declares. If the file declares none, it uses the
language of the run (`--language` or `robot.toml`). Otherwise it uses English. The
Recorder also uses a keyword section that is already in the file, in any language.
Many thanks to René for the fix.

### Raise Python 3.11 minimum required version to 3.11.5 because of CVE-2026-126191 ([#5546](https://github.com/MarketSquare/robotframework-browser/issues/5546))

The soupsieve fix for CVE-2026-126191 needs Python 3.11.5 or later. Because of
this, Browser now needs Python 3.11.5 or later.

### Assertion retry deadline uses wall-clock time and ends early when the system clock jumps ([#5577](https://github.com/MarketSquare/robotframework-browser/issues/5577))

Browser used the system clock to measure how long an assertion can retry. When the
system clock moved forward, the retries stopped too early and the keyword failed.
Now Browser uses a monotonic clock, which does not change when the system clock
changes. `Wait For Download` had the same problem, and this release fixes it too.

### Expose Playwright's registerSelectorEngine() ([#4182](https://github.com/MarketSquare/robotframework-browser/issues/4182))

To register a Playwright selector engine, use a JavaScript extension keyword. The
keyword gets the injected argument `playwright` and calls
`await playwright.selectors.register(...)`. Run this keyword before you open a
page. After that, Browser selectors can use the new engine. For an example, see
[Custom Selector Strategies](https://robotframework-browser.org/docs/extending/javascript-extensions#custom-selector-strategies).
Many thanks to barambulka for the request.

## Acknowledgements

### IndexError masks failures from JavaScript extension keywords with *args ([#5306](https://github.com/MarketSquare/robotframework-browser/issues/5306))

A JavaScript extension keyword with an argument named `args` gets `*args` in
Python. When such a keyword failed with more than one argument, the library raised
`IndexError` while it handled the failure. This error hid the original error. Now
Browser shows the original error. Many thanks to wesleyke2 for the report and the
fix.

### Dependency updates ([#5481](https://github.com/MarketSquare/robotframework-browser/issues/5481))

Some dependencies were old. `rfbrowser init` also logged a "blocked post install
script" warning, because `allowScripts` named old versions of protobufjs and
unrs-resolver. Now Browser uses new versions of Playwright and other dependencies,
and the warning does not show. Many thanks to Houbein for the report.

## Full list of fixes and enhancements

<table>
<thead>
  <tr>
    <th>
      ID
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Priority
    </th>
    
    <th>
      Summary
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5306" rel="nofollow">
        #5306
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      IndexError masks failures from JavaScript extension keywords with *args
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5481" rel="nofollow">
        #5481
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Dependency updates
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5492" rel="nofollow">
        #5492
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      rfbrowser init and install offer chromium-tip-of-tree-headless-shell, which Playwright 1.63 removed
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5493" rel="nofollow">
        #5493
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      rfbrowser init offers bidi-chromium, which Playwright cannot install
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5509" rel="nofollow">
        #5509
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Recorder writes English keyword names when Browser is imported with a translation
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5510" rel="nofollow">
        #5510
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Recorder ignores the Robot Framework language of the target file
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5546" rel="nofollow">
        #5546
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Raise Python 3.11 minimum required version to 3.11.5 because of CVE-2026-126191
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5577" rel="nofollow">
        #5577
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Assertion retry deadline uses wall-clock time and ends early when the system clock jumps
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/4182" rel="nofollow">
        #4182
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Expose Playwright's registerSelectorEngine()
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5109" rel="nofollow">
        #5109
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      high
    </td>
    
    <td>
      <code>
        HTTP
      </code>
      
       follows the browser fetch API
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5617" rel="nofollow">
        #5617
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Abort Requests, Remove Route Rule, Remove All Route Rules
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5622" rel="nofollow">
        #5622
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Mock Responses
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5625" rel="nofollow">
        #5625
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      high
    </td>
    
    <td>
      Modify Responses
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5425" rel="nofollow">
        #5425
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Record Selector does not work on a manually switched page
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5484" rel="nofollow">
        #5484
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Wait For Response returns no body key for an empty response body with Playwright 1.65
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5486" rel="nofollow">
        #5486
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      With two traced contexts, each trace shows the other context's keywords as empty groups
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5487" rel="nofollow">
        #5487
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Full tracing group mode adds trace groups for IF/ELSE branches that did not run
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5488" rel="nofollow">
        #5488
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Trace group names show keyword arguments as written, not their values
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5491" rel="nofollow">
        #5491
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      On-failure keyword runs again for each keyword teardown inside a timed-out test's teardown
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5529" rel="nofollow">
        #5529
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Bump NodeJS bundled in BrowserBatteries to 26.13.1
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5544" rel="nofollow">
        #5544
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Add Style Tag, Add Script Tag and Add Init Script handle an empty source differently
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5551" rel="nofollow">
        #5551
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      The library can connect to another process's Node.js when its port was taken
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5611" rel="nofollow">
        #5611
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Wait For Response docs list ? and <span>
        
      </span>
      
       as glob wildcards, but Playwright matches them literally
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/524" rel="nofollow">
        #524
      </a>
    </td>
    
    <td>
      enhancement
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Intercepting and modifying responses (playwright page.route)
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5541" rel="nofollow">
        #5541
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      <code>
        Add Style Tag
      </code>
      
       supports <code>
        url
      </code>
      
      , <code>
        path
      </code>
      
       and frames
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5598" rel="nofollow">
        #5598
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      Add <code>
        Set HTTP Credentials
      </code>
      
       keyword to change HTTP credentials mid-test
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5623" rel="nofollow">
        #5623
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      medium
    </td>
    
    <td>
      New keyword <code>
        Send API Request
      </code>
      
       for Playwright's <code>
        APIRequestContext.fetch
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5322" rel="nofollow">
        #5322
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      low
    </td>
    
    <td>
      Close Context leaves the context open when stopping the trace or saving coverage fails
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5323" rel="nofollow">
        #5323
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      low
    </td>
    
    <td>
      Close Browser and Close All Browsers hide why closing a browser failed
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5429" rel="nofollow">
        #5429
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Fix the latest-page lookup on an empty page stack
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5459" rel="nofollow">
        #5459
      </a>
    </td>
    
    <td>
      bug
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Failure screenshots are lost when Browser is imported with a translation
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5099" rel="nofollow">
        #5099
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        Add Init Script
      </code>
      
       keyword to run JavaScript before page scripts load
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5100" rel="nofollow">
        #5100
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        Add Script Tag
      </code>
      
       keyword to inject a script into the page
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5102" rel="nofollow">
        #5102
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        Blur
      </code>
      
       keyword to remove focus from an element
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5106" rel="nofollow">
        #5106
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add cookie filters and partitioned-cookie support: <code>
        Delete All Cookies
      </code>
      
       filters, <code>
        Get Cookies    urls=
      </code>
      
      , <code>
        Add Cookie    partitionKey=
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5111" rel="nofollow">
        #5111
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        timeout=
      </code>
      
      /<code>
        wait_until=
      </code>
      
       to <code>
        Go Back
      </code>
      
       and <code>
        Go Forward
      </code>
      
      , and <code>
        referer=
      </code>
      
       to <code>
        Go To
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5113" rel="nofollow">
        #5113
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Support <code>
        content
      </code>
      
      , <code>
        mode
      </code>
      
       and <code>
        urlFilter
      </code>
      
       keys in the <code>
        recordHar
      </code>
      
       option of <code>
        New Context
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5115" rel="nofollow">
        #5115
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        Set Extra HTTP Headers
      </code>
      
       keyword to change request headers mid-test
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5119" rel="nofollow">
        #5119
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Enrich <code>
        Wait For Request
      </code>
      
       / <code>
        Wait For Response
      </code>
      
      : metadata, binary body support, and sibling consistency
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5120" rel="nofollow">
        #5120
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Network request mocking with route rules
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5122" rel="nofollow">
        #5122
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Add <code>
        Start Tracing
      </code>
      
       / <code>
        Stop Tracing
      </code>
      
       / <code>
        Start Trace Chunk
      </code>
      
       / <code>
        Stop Trace Chunk
      </code>
      
       keywords for ad-hoc tracing
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://github.com/MarketSquare/robotframework-browser/issues/5628" rel="nofollow">
        #5628
      </a>
    </td>
    
    <td>
      feature
    </td>
    
    <td>
      ---
    </td>
    
    <td>
      Remove Route Rule and Remove All Route Rules log how many times each rule ran
    </td>
  </tr>
</tbody>
</table>

Altogether 42 issues. View on the [issue tracker](https://github.com/MarketSquare/robotframework-browser/issues?q=milestone%3Av21.1.0).
