Skip to content

vcwild/task-page-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task page map

All page interactions mapped to code.

About

This project is an implementation of Page Object Model (POM) design pattern. It was created by using Selenium to map all page iterables into a Domain-specific language (DSL).

The DSL is used as an interface of interaction between the browser webdriver and the code to manipulate the browser itself and the page iterables.

POM design pattern is generally used in test automation for enhancing code quality and maintentance.

Requirements

Installing project dependencies

You can install the project dependencies using either pip or poetry.

  • Using pip
pip install -r requirements.txt
  • Using poetry
poetry install

Testing

To apply tests you will need Selenium Hub and a remote browser instance.

Simply run:

docker-compose up -d

Testing using pytest

To use pytest for testing, in the project root simply run

pytest -v $(pwd)/tests/test_page_mapper.py

Testing using Behave BDD

In the project root simply execute:

behave src/features -D debug=True

References

MENDES, E. Selenium course. 2020.

About

All page interactions mapped to code using Selenium.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published