Skip to content

CLI --ignore-https-errors flag is documented but missing in released v0.1.13 #405

@heroesm

Description

@heroesm

Description

The Agent CLI Configuration documentation lists --ignore-https-errors as an available option for the open command:

playwright-cli open --ignore-https-errors          # ignore HTTPS errors

However, this flag is not recognized by the currently released version 0.1.13 of @playwright/cli.

Reproduction Steps

  1. Install the latest version globally:

    npm install -g @playwright/cli@latest
  2. Check the version:

    playwright-cli --version
    # Output: 0.1.13
  3. Run open --help and observe available flags:

    playwright-cli open --help

    Output:

    Options:
      --browser                   browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge.
      --config                    path to the configuration file, defaults to .playwright/cli.config.json
      --headed                    run browser in headed mode
      --persistent                use persistent browser profile
      --profile                   path to a persistent user data directory.
    
  4. Attempt to use the flag:

    playwright-cli open --ignore-https-errors https://example.com

    Output:

    Error: unknown option: ignore-https-errors
    

Expected Behavior

The --ignore-https-errors flag should be accepted by the CLI and passed to the underlying Playwright browser context, as documented.

Actual Behavior

The flag is rejected as unknown.

Investigation

Looking at the released npm package (@playwright/cli@0.1.13), the help.json defines the following flags for the open command:

"flags": {
  "browser": "string",
  "config": "string",
  "headed": "boolean",
  "persistent": "boolean",
  "profile": "string"
}

The ignore-https-errors flag is absent. The same documentation page also lists --device, --viewport-size, --proxy-server, --proxy-bypass, and --user-agent as open flags; all of these are similarly unrecognized by the CLI.

Workaround

Users can configure ignoreHTTPSErrors via the JSON config file (.playwright/cli.config.json):

{
  "browser": {
    "contextOptions": {
      "ignoreHTTPSErrors": true
    }
  }
}

However, this is less convenient than a direct CLI flag, especially for ad-hoc commands or CI environments.

Environment

  • @playwright/cli: 0.1.13
  • playwright-core: 1.61.0-alpha-1778188671000
  • Node.js: 20+
  • OS: Linux / macOS / Windows (all affected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions