Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axe #209

Open
nialbima opened this issue Sep 22, 2022 · 1 comment
Open

Axe #209

nialbima opened this issue Sep 22, 2022 · 1 comment

Comments

@nialbima
Copy link

nialbima commented Sep 22, 2022

Hi all,

I'm hoping this isn't the wrong place to put this comment, but I've found a breaking change in a library I rely on heavily and wanted to see if somebody might have any ideas that would allow me to proceed with migrating to Cuprite.

I've wanted to ditch Selenium for a long time now, and finally got my app in a position where a previous Cuprite spike looked like it could feasibly be turned into a team effort. It didn't, because we've upgraded axe in the interim in order to maintain ADA compliance, and apparently anything above version 4.4.2 of the core Axe API just totally breaks Cuprite.

I took a brief stab at implementing a package here, but didn't have a ton of luck. According to the Axe Community Slack, they're now hard-coding Selenium support in Axe, so a fix would require a lot more than "replace the driver in a new copy of this file with Cuprite." Because the newer versions of Axe have added logic to extract the Browser instance from the Driver, and because Axe relies heavily on evaluating a JS script, the Axe code as-is seems like it'd need major surgery in order to work with Cuprite. My horrible, horrible "hey what if i just dump all the script evaluation methods from Driver into Browser during spec run initialization" approach didn't get very far.

So my questions:
A) Has anybody managed to get Axe running with Cuprite in RSPec? If so, how?
B) If I wanted to attempt to create a package for Axe that allows the use of Cuprite in Capybara, would this be an appropriate place to request feedback on my code? I have no idea exactly what this would look like yet.

@nialbima
Copy link
Author

@camertron posted a helpful monkey-patch here if anybody's interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant