-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime issue: axe run throws error 'No elements found for include in page Context' when --include not provided #4558
Comments
Thanks for the issue. It looks like the problem is a JavaScript file on the page that overrides native JavaScript functions. In this case To fix it you'll need to not have the file add the function to the global scope by either changing the name of the function or probably the most robust solution would be to not have the file add any of the functions to the global scope to prevent accidentally overriding native JavaScript functions. |
@straker Thank you for the details and steps to work around the issue. Unfortunately this is a client's application and I am not certain what access they have to make modifications. I will relay the suggestion and try to work with them to get their application updated. I'm assuming because they are overriding the global scope there isn't much else that can be done within the axe implemenation? |
That is correct, once globals are overridden there's not much we can do. |
Product
axe-core
Product Version
4.9.1
Latest Version
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
Passes
Expectation
Successfully returns the accessibility results for the page when only the url is provided without an
--include
argumentActual
Results in the below error
How to Reproduce
Can be reproduced by running from the command line
Additional context
OS: ubuntu 22.04
Node: 18
The text was updated successfully, but these errors were encountered: