Skip to content

Commit

Permalink
docs(puppeteer): unable to inject axe-core when js is disabled (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek authored Dec 20, 2022
1 parent 1339ec7 commit 420c685
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/puppeteer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,11 @@ const axe = new AxePuppeteer(page).setLegacyMode();
const result = await axe.analyze();
axe.setLegacyMode(false); // Disables legacy mode
```

## Caveat

Due to axe-core needing to be injected into the page and executed we are unable to do the following:

```js
await page.setJavaScriptEnabled(false);
```

0 comments on commit 420c685

Please sign in to comment.