qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
256 stars 191 forks source link

Added accessibility to the page object model #342

Closed ajitava-git closed 8 months ago

ajitava-git commented 9 months ago

This PR is for accessibility tests for the page object model framework.

I have added a new method in the page factory to return all the pages. The pages are being iterated and injected axe-core and run for checking accessibility.

Once the accessibility checks are run, a snapshot is created for every page.

So, next time a new page is introduced, we must add it to the page factory, and the accessibility script will do the job.

An accessibility util is added with the methods to inject, run, and write axe into the tests.

A sample accessibility test "test_accessibility.py" is added to the "tests" folder.

The test can also be run with the marker -m "ACCESSIBILITY".

shivahari commented 8 months ago

@ajitava-git Can you squash the commits in this branch & rebase it with master?