Welcome to my first test project with implemented Page Object Model.
In theory, by applying this design pattern we can gain:
- Reduction of duplicate code
- Easier use of the same code in multiple tests
- Increased test readability
- Easier code maintenance
In BasePage
you can find all basic operations done on a website. It inherits it's methods for all other Page classes.
To run this program:
- Run
pytest Tests/test_RegistrationPage.py
for account creation on a seleniumdemo.com website. Created account is valid for 24 hours. By that time it's deleted. - Run
pytest Tests/test_LoginPage.py
for login test
Thanks for checking it out!