Skip to content

[BUG] Electron: Playwright specific arguments between executable and project path #23385

Open
@c3er

Description

@c3er

System info

Source code

  • I provided exact source code that allows reproducing the issue locally.
const electronPath = require("electron")
const playwright = require("playwright")

const electron = playwright._electron

// ...

const app = await electron.launch({
    args: [
        "path/to/main.js",
        "path/to/my/file",
    ],
    executablePath: electronPath,
})

Expected

Given, the code above, process.argv should look like this:

[
    'path/to/Electron',
    'path/to/project',
    'path/to/my/file',
    '--inspect=0',
    '--remote-debugging-port=0',
]

Actual

process.argv looks like this:

[
    'path/to/Electron',
    '--inspect=0',
    '--remote-debugging-port=0',
    'path/to/project',
    'path/to/my/file',
]

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