我在哪里可以找到 java 斧头指南?

Where I can find a guide to aXe with java?

我想用 selenium/java(可能还有黄瓜)自动化我的可访问性测试。我在哪里可以找到指南或教程? 我知道有

https://github.com/dequelabs/axe-selenium-java

但是我不明白这段话:The simplest way to do this is to include it in your own src.test.resources and pass MyTest.class.getResource("/axe.min.js") to the Builder constructor as demonstrated in the ExampleTest.因为我没有找到ExampleTest。 有人可以帮我吗? :)

您要查找的 ExampleTest 位于您引用的存储库的 src/test/java/com/deque/axe 文件夹下。以防万一您再次找不到它:

private static final URL scriptUrl = ExampleTest.class.getResource("/axe.min.js");

JSONObject responseJSON = new AXE.Builder(driver, scriptUrl).analyze();

您可能会发现一些有用/更易于使用的替代方法: