Web accessibility standards all frames to be tested with axe-core.
Without the axe-core script, it is not possible for the tool to check for violations on multiple levels of nested iframes.
Ensure iframe and frame elements contain the axe-core script.
The after – function (optional) check is the function that gets called for checks that operate on a page-level basis, to process the results from the iframe elements.
The pageLevel ensures iframe and frame elements contain the axe-core script rule, when set to true, is only applied when the entire page is tested. Results from nodes on different frames are combined into a single result.