Skip to content

Playwright cannot automate BrowserView inside Electron app (only BrowserWindow is exposed) #39507

@Ravisankar3

Description

@Ravisankar3

Problem
Our Electron application uses BrowserView (https://electronjs.org/docs/latest/api/browser-view).
We noticed Playwright can fully automate BrowserWindow via electronApp.firstWindow(),
but BrowserView is not exposed as a Page.

We need official clarification on:

  • Whether BrowserView automation is supported
  • If not, whether CDP is the recommended workaround

What we tested

  • electron.launch() works
  • electronApp.firstWindow() returns only BrowserWindow
  • BrowserView WebContents does not map to a Playwright Page
  • We attempted CDP (chromium.connectOverCDP), it is workaround right?

Request
Please confirm:

  1. BrowserView is not directly automatable by Playwright

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions