I am getting this error "Error when enabling iframe communication" when try to run accessibility script

82 views Asked by At
public void anyAccessibilityWithCustomReport() throws InterruptedException {
       
    Results axeResult = new AxeBuilder().disableIframeTesting().analyze(driver);
    
    Assertions.assertTrue(axeResult.violationFree(), buildCustomReport(axeResult));
}

The error is on this line.

Results axeResult = new AxeBuilder().analyze(driver);

And the error says the following.

Error when enabling iframe communication

I am using the above code, but sometimes my test cases become quite flaky. When that happens, I get the above error. I am using the latest version of axe core 4.7.0 . Can anyone give me any suggestions on how to remove this error?

0

There are 0 answers