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 Selenium Python not able to capture violation even after making hidden element visible #171

Open
HansMohan opened this issue Sep 20, 2019 · 6 comments

Comments

@HansMohan
Copy link

Hi Team
We are utilizing 'axe-selenium-python' package to capture violation of the website.
It has been mentioned in the documentation that aXe would not be able to capture violation for hidden elements unless made visibly rendered.

After changing the style attribute for hidden elements, 'axe-selenium-python' package is not able to catch violation whereas axe chrome extension catch the violation for the same scenario.

Element source that is hidden on the website
image

CSS style attributes corresponding to modal and fade class
image

We change both manually or programatically through JS the style attribute
display: block
opacity:1

Once the elements goes visible on screen, 'axe chrome extension is able to capture vioaltion, see the below screen shot

image

Can it be please explained why axe-selenium python package is unable to capture the particular violation.

@HansMohan
Copy link
Author

Hi Team,

We are stuck in our development procedure due to the issue mentioned.

Gentle reminder. Any help shall be very much appreciated.

@kimberlythegeek
Copy link
Contributor

@HansMohan I apologize. I did take a look at this on Friday but had to go back to some of my other work.

My first guess is that axe-core needs to be updated. I was in the process of automating this with GitHub tools but was moved to a different team, so this project is unfortunately not my primary focus anymore.

I did download the latest version of axe-core and ran the tests locally, which passed. I will run it to see if it will catch an element similar to your example above.

Thanks for submitting this issue, and I appreciate your patience!

@kimberlythegeek
Copy link
Contributor

marking as duplicate of #170

@HansMohan
Copy link
Author

Thanks a lot @kimberlythegeek for taking up this issue. please let us know as you perform similar test for the element reported by us in your local with updated axe-core.

@kimberlythegeek
Copy link
Contributor

an update on this: I've updated the axe-core version locally but I'm getting some import mismatch errors on the conftest.py file for some reason. I'm going to push my changes to see if the travis build returns the same results.

I'm also working to update the core tests to be a little more informative

@HansMohan
Copy link
Author

Thanks @kimberlythegeek for the update. we look forward for the updated version of Axe-Core..
Keeping posting us. Thanks

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

No branches or pull requests

2 participants