Skip to content

Axe Selenium Python not able to capture violation even after making hidden element visible #171

Description

@HansMohan

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions