Skip to content

Reporting the need to use setLegacyMode #1209

@KiithNabaal

Description

@KiithNabaal

Product

puppeteer

Product Version

24.14.0

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

AxePuppeteer should be able to run its analysis on https://www.niche.com as well as apple.com and produce results.

Actual

A Page/Frame not ready error occurs and am not able to get any Axe results.

How to Reproduce

Should be able to run it on either of the above websites. Note that this works fine on the CLI, it just fails when using AxePuppeteer:

const axeResults = await new AxePuppeteer(page)
            .withTags(AXE_CONFIG.tagsToAnalyze)
            .analyze();

Additional context

Unless I add setLegacyMode(true), I cannot get any Axe results. Reporting this as an issue as expected: https://www.npmjs.com/package/@axe-core/puppeteer/v/4.8.1#axepuppeteersetlegacymodelegacymode-boolean--true

I don't know what the latest version is. Your page says 4.8 but my package.json says "@axe-core/puppeteer": "^4.10.2",

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