dequelabs / dequelabs/axe-core
Runtime issue: axe run throws error 'No elements found for include in page Context' when --include not provided
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
### Product
axe-core
### Product Version
4.9.1
### Latest Version
- [X] I have tested the issue with the latest version of the product
### Issue Description
Attempting to execute a run request against `https://stg1.webassessor.com/wa.do` results in an error indicating there are 'No elements found for include in page Context' when it is run without an `--include` option. When the request is run with `--include html` the accessibility results are returned as expected.
#### Fails
```
axe https://stg1.webassessor.com/wa.do
```
#### Passes
```
axe --include 'html' https://stg1.webassessor.com/wa.do
```
#### Expectation
Successfully returns the accessibility results for the page when only the url is provided without an `--include` argument
#### Actual
Results in the below error
```
terry@terry-p1:~$ axe https://stg1.webassessor.com/wa.do
Running axe-core 4.9.1 in chrome-headless
Testing https://stg1.webassessor.com/wa.do ... please wait, this may take a minute.
Error: JavascriptError: javascript error: No elements found for include in page Context
(Session info: chrome-headless-shell=127.0.6533.99)
at Object.throwDecodedError (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/http.js:514:13)
at Executor.execute (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/http.js:446:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Driver.execute (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/webdriver.js:740:17)
at async AxeBuilder.runPartialRecursive (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/@axe-core/webdriverjs/dist/index.js:480:27)
at async AxeBuilder.analyzePromise (/home/terry/.nvm/versions/node/v18.18.2/lib/node_modules/@axe-core/cli/node_modules/@axe-core/webdriverjs/dist/index.js:439:18) {
remoteStacktrace: '#0 0x5cfc81f636ba \n' +
'#1 0x5cfc81c33730 \n' +
'#2 0x5cfc81c395c1 \n' +
'#3 0x5cfc81c3b4e3 \n' +
'#4 0x5cfc81cc50ee \n' +
'#5 0x5cfc81ca5a52 \n' +
'#6 0x5cfc81cc41ca \n' +
'#7 0x5cfc81ca57f3 \n' +
'#8 0x5cfc81c75ec9 \n' +
'#9 0x5cfc81c7691e \n' +
'#10 0x5cfc81f299eb \n' +
'#11 0x5cfc81f2d972 \n' +
'#12 0x5cfc81f16e15 \n' +
'#13 0x5cfc81f2e502 \n' +
'#14 0x5cfc81efbd2f \n' +
'#15 0x5cfc81f52578 \n' +
'#16 0x5cfc81f52750 \n' +
'#17 0x5cfc81f6248c \n' +
'#18 0x77fa72694ac3 \n'
}
Please report the problem to: https://github.com/dequelabs/axe-core-npm/issues/
```
#### How to Reproduce
Can be reproduced by running from the command line
```
axe https://stg1.webassessor.com/wa.do
```
#### Additional context
OS: ubuntu 22.04
Node: 18
Contributor guide
Assessment
This issue has not been assessed yet.