使用的软件依赖版本:
com.deque.html.axe-core:4.0.0
我们使用的代码:
文件 file = new File("src/main/resources/axe.min.js");
String path = file.getCanonicalPath();
AxeBuilder builder = new AxeBuilder();
String timeoutFilePath = "src/main/resources/axe.min.js";
FileAxeScriptProvider axeScriptProvider = new FileAxeScriptProvider(timeoutFilePath);
builder.setAxeScriptProvider(axeScriptProvider);
Results result = builder.analyze(driver);
List<Rule> violations = result.getViolations();
Assert.assertEquals(0, violations.size(), "No violations found");
例外:
“java.lang.RuntimeException:从 iframe 中删除沙箱时出错”
谁能帮助我们解决这个问题。