IBMa / equal-access

IBM Equal Access Accessibility Checker contains tools to automate accessibility checking from a browser or in a continuous development/build environment
https://www.ibm.com/able/toolkit/tools#develop
Apache License 2.0
630 stars 83 forks source link

How to integrate ace with Java selenium #1943

Closed MHoov closed 2 months ago

MHoov commented 3 months ago

Discussed in https://github.com/IBMa/equal-access/discussions/1942

Originally posted by **[sliu1206](https://github.com/sliu1206)** July 4, 2024 How to integrate ace with Java selenium
philljenkins commented 3 months ago

@sliu1206 does the readme help answer your questions? github.com/IBMa/equal-access//accessibility-checker

Review the accessibility-checker/boilerplates/README and see examples for the following:

shunguoy commented 2 months ago

triage: we don't have a plugin for Java.

tombrunet commented 2 months ago

@sliu1206 Several year back, we had a Java package that would run ace in Selenium, but that package was not maintained and therefore not open sourced. We have an open issue to update this: #398.

The basic idea is very similar to the Node version. Basically you run a script to either pull the ace engine from unpkg or load it locally and push it and eval in javascript: https://github.com/IBMa/equal-access/blob/master/accessibility-checker/src-ts/lib/ACEngineManager.ts#L89

Once the engine is loaded, you use script again to call the checker engine: https://github.com/IBMa/equal-access/blob/master/accessibility-checker/src-ts/lib/ACHelper.ts#L223

It is in our backlog, but most of the teams we've been working with are using various Node environments to run their tests, and we haven't had resources to get to the Java version.