From 420c68543010c72627d0cfb6469a4ba769cff071 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 20 Dec 2022 11:32:36 -0500 Subject: [PATCH] docs(puppeteer): unable to inject axe-core when js is disabled (#634) --- packages/puppeteer/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/puppeteer/README.md b/packages/puppeteer/README.md index 205f363d..3486d7b4 100644 --- a/packages/puppeteer/README.md +++ b/packages/puppeteer/README.md @@ -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); +```