Java API ドキュメンテーション

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard

Axe DevTools for Web Java 統合のための API リファレンス インデックス。Hamcrest、Playwright、Seleniumを含む

Not for use with personal data

このセクションには、次の API リファレンスが含まれます:

以下の各リンクは、それぞれの統合の API の概要を提供します。

axe-core バージョンの設定

デフォルトでは、axe-core のバージョンは Axe DevTools パッケージと同じバージョンです。オプションで、古いバージョンの axe-core をインポートして使用することもできます。このためには、選択した axe-core バージョンを開発環境にダウンロードする必要があります。

さらに、Axe DevTools はルールセットがsrc/test/resources/config/axe-ruleset.jsonに配置されていることを期待します。また、環境変数 AXE_RULESET_PATH か設定を通じて場所を指定することもできます。

この例では、設定オプションを通じて、Axe DevTools に異なるバージョンの axe-core を提供します:

AxeConfiguration.configure()
    .forAuditSuite(getClass().getResource("/config/axe-ruleset.json"))
    .withAxeScript(getClass().getResource("/axe.min.js"));