Skip to content

Electron app: automate Electron.WebContentsView using playwright #39427

@lalitsvm

Description

@lalitsvm

we were using below code to run automation when there was electron BrowserWindow support but now our electron application is using Electron.WebContentsView, suggest changes for this? we are using "name": "@playwright/test", "version": "1.56.0

const electronApp = await _electron.launch({
executablePath: path.resolve(localExePath),
offline: false,
})
pageFixture = await electronApp.firstWindow()
await pageFixture.waitForLoadState()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions